Snipplr - sadushttp://snipplr.com/users/sadus/language/php
Recent snippets posted on Snipplr.comen-usMon, 03 Aug 2015 06:26:59 GMT(PHP) Email validation with MX checkhttp://snipplr.com/view/49101/email-validation-with-mx-check/
found this somewhere online...not the author, but works like a charm ]]>Thu, 17 Feb 2011 02:50:33 GMThttp://snipplr.com/view/49101/email-validation-with-mx-check/(PHP) PHP error_log to syslog to a custom file pipe to tail your errors.http://snipplr.com/view/44235/php-errorlog-to-syslog-to-a-custom-file-pipe-to-tail-your-errors/
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. ]]>Tue, 16 Nov 2010 04:27:55 GMThttp://snipplr.com/view/44235/php-errorlog-to-syslog-to-a-custom-file-pipe-to-tail-your-errors/(PHP) debug PHP for the newbies in error logs with execution timehttp://snipplr.com/view/43990/debug-php-for-the-newbies-in-error-logs-with-execution-time/
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 global variable "debug" to true/false...
Note: The usage of this function will slow down your script... use it only to debug. Turn it off on production.
to view the logs, go to your default php error log file. Enjoy! ]]>Fri, 12 Nov 2010 04:44:24 GMThttp://snipplr.com/view/43990/debug-php-for-the-newbies-in-error-logs-with-execution-time/(PHP) data sanitizationhttp://snipplr.com/view/43663/data-sanitization/
]]>Sat, 06 Nov 2010 01:21:55 GMThttp://snipplr.com/view/43663/data-sanitization/