professional-sql-12-lib-functions.php / php
<?php // specify log file define('LOGFILE', '/srv/apache/example.com/logs/database.log'); // define group and record separator characters define('GS', chr(0x1D)); define('RS', chr(0x1E)); // begin or continue session session_start(); // write the provided message to the log file function write_log(fp = fopen(LOGFILE, 'a'); fwrite(_SESSION['username'] . GS . fp); } ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.