Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged error



« Prev 1 Next »
This will print out a variable to a <pre>
0 1531 posted 12 years ago by brownrl
This example shows you how to define custom error pages in .htaccess file and also how to display the error page on your site. You may create separate files for each error, described in Sample 1 or just create the one PHP file for Sample 2. Here...
0 1806 posted 12 years ago by apphp-snippets
easy way of catching and displaying errors and return values from a exec() command back in PHP.
0 1721 posted 13 years ago by iroybot
easy way of catching and displaying errors and return values from a exec() command back in PHP.
0 1848 posted 13 years ago by iroybot
1 1791 posted 14 years ago by paul0078
Only Show Errors in Development Stage (Mostrar erros somente no estágio de desenvolvimento)
0 1534 posted 14 years ago by cdohost
0 1556 posted 15 years ago by zealmurapa
0 1741 posted 15 years ago by mindshare
0 1706 posted 15 years ago by pickyj
2 1584 posted 15 years ago by sjacunningham
Refer here for a full overview: http://net.tutsplus.com/tutorials/php/quick-tip-email-error-logs-to-yourself-with-php/
9 3004 posted 15 years ago by Nettuts
So i wanted to spit all my error_log(); and error_reporting(E_ALL); to syslog on my MacOSX and syslog would output it on a custom file.
0 2068 posted 15 years ago by sadus
I'm originally a sys admin and i love "tail - f /var/log/*" ... so i created a similar function in PHP that will allow me to view in real time what classes/functions/files/lines of my code is being run... The usage is really simple, just set a glo...
1 3561 posted 15 years ago by sadus
In a Project i had to save serialized arrays in a MYSQL Database, when i used that i got a Error Message for no reason (Error at offset XX of XX bytes in...). I wrote this little functions to fix that issue. (I dont recommend to save serialized Arra...
0 1761 posted 15 years ago by FreaKzero
0 1209 posted 15 years ago by javierav
0 1468 posted 16 years ago by unravelme1
Put on top of script
1 1844 posted 16 years ago by gerhardsletten
2 2039 posted 16 years ago by iloveitaly
1 1605 posted 18 years ago by smartalec
Add these lines to Drupals settings.php. Probably works on other systems, then Drupal too.
1 2020 posted 18 years ago by berkes
1 2126 posted 18 years ago by nicolaspar
Simple way to check see if a file exists and is readable before you include it. Stops nasty error messages onscreen.
5 3009 posted 19 years ago by 1man
1 1643 posted 19 years ago by gdonald
« Prev 1 Next »