SimpleXML and PHP Error Handling - Tumblr RSS Example. Overview. Use PHP's if…else statement to hide error messages on a web page when an imported RSS feed is unavailable. Sample error message(s): ...
SimpleXML and PHP Error Handling - Tumblr RSS Example. Overview. Use PHP's if…else statement to hide error messages on a web page when an imported RSS feed is unavailable. Sample error message(s): ...
Use PHP's built-in trigger_error() instead of our own error handling, then override PHP's error handling with set_error_handler() to give a similar effect for all PHP errors! I hope you enjoyed part 1 of this series. ...
PHP error handling . Does this type of error handling code look familiar? function doFunction($var) { if(is_numeric($var)) { /* do some stuff*/ } else { return -1; } }. BLEH. How ugly is that? There's no indication whether -1 is actually ...
Django tips . 1. Great article on installing Django on hostmonster: (fastcgi, flup, custom python): http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/. 2. Django debugging tip: ...
Big list of Django tips (and some python tips too). My man Eric Holscher drops some Django and Python knowledge on your asses. A lot of good stuff, here. Check it out. Visit site: http://ericholscher.com/blog/2008/oct/5/ django-tips / ...
Django tips : template loading and rendering. An entry published by James Bennett on November 1, 2007, Part of the category Django. 10 comments posted. I've been reminded today by Maura that November is National Blog Posting Month, ...
The first change is that now everything has a trailing slash. Django's CommonMiddleware, when APPEND_SLASH is True , takes care of that automatically and issues a redirect to the URL with the trailing slash (I don't want to have two ...
Django tips : get the most out of generic views. An entry published by James Bennett on November 16, 2006, Part of the category Django. 17 comments posted. Recently at work I had the chance to revisit an application I'd written fairly ...