Welcome To Snipplr


Everyone's Recent Snippets Tagged error



« Prev 1 2 3
procedure to throw application defined error
0 2258 posted 9 years ago by ktrout
The try ... except statement has an optional else clause, which, when present, must follow all except clauses. It is useful for code that must be executed if the try clause does not raise an exception. For example:
0 3316 posted 9 years ago by ManishChandraReddy
// create a variable to toggle debugging // to use it, just call debug(with,any,optional,parameters) debug(x,y,z); // it will try to guess what type of message to log, or you can specify in the first parameter debug("error",x,y,z);
1 3570 posted 10 years ago by brandonjp
This example shows you how to log errors to a file, and prevent showing them to the user. Make sure that the file exists and you're able to write to it.
0 2527 posted 11 years ago by apphp-snippets
This will print out a variable to a <pre>
0 1210 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 1439 posted 12 years ago by apphp-snippets
A simple message box created with only one div container with background and border color, some margin and padding for position the text message nicely, I set the width for 500px, you can change it to auto or any fixed value you want.
1 1525 posted 12 years ago by codingforever99
This will prevent CURL to verity the HTTPS certification.
0 1114 posted 13 years ago by akem
easy way of catching and displaying errors and return values from a exec() command back in PHP.
0 1350 posted 13 years ago by iroybot
easy way of catching and displaying errors and return values from a exec() command back in PHP.
0 1479 posted 13 years ago by iroybot
Just an error log from TelecinePlay. Please.. don't share error logs in public..
0 3343 posted 13 years ago by novazoo
1 1434 posted 13 years ago by paul0078
CSS snippet for diagnostics to find empty elements etc.
0 1127 posted 13 years ago by Terion
Boiler Plate for T-Sql Error handling
1 1461 posted 14 years ago by amos24c
Only Show Errors in Development Stage (Mostrar erros somente no estágio de desenvolvimento)
0 1219 posted 14 years ago by cdohost
0 1123 posted 14 years ago by manuelpedrera
0 1204 posted 14 years ago by zealmurapa
0 1398 posted 14 years ago by mindshare
0 1358 posted 14 years ago by pickyj
2 1232 posted 14 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 2611 posted 14 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 1667 posted 14 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 3037 posted 14 years ago by sadus
Solucion a error cuando mudamos una bd de una pc a otra y luego no podemos crear un diagrama de la BD
2 1732 posted 15 years ago by derebus
how to get your apache error log
0 1301 posted 15 years ago by adriamooney
« Prev 1 2 3