Logging With PHP - Closing Time
(Page 9 of 9 )
And that's about it for the moment. In this article, I offered you a brief overview of logging in PHP, demonstrating how you can use built-in functions, off-the-shelf libraries or your own code to easily and efficiently create logs of the activity taking place in your application. I demonstrated logging to a file, to a database, to an email address and to the console, and wrapped things up with a couple of simple examples that demonstrated how logs could be built and analyzed in a real-world application.
I hope you enjoyed reading this article as much as I enjoyed writing it. If you'd like to know more about the topics discussed in the previous pages, here are some links you should bookmark:
PHP file manipulation functions, at
http://www.php.net/manual/en/ref.filesystem.phpPHP mail functions, at
http://www.php.net/manual/en/ref.mail.phpPHP MySQL functions, at
http://www.php.net/manual/en/ref.mysql.phpPHP error logging functions, at
http://www.php.net/manual/en/ref.errorfunc.phpThe PHP Log class, at
http://pear.php.net/package-info.php?package=LogPEAR, at
http://pear.php.netTill next time...stay healthy!
Note: All examples in this article have been tested on Linux/i586 with PHP 4.2.3. Examples are illustrative only, and are not meant for a production environment. Melonfire provides no warranties or support for the source code described in this article. YMMV!
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |