professional-sql-12-public-files-view-log.php / php
<?php // specify log file define('LOGFILE', 'database.log'); // define group and record separator characters define('GS', chr(0x1D)); define('RS', chr(0x1E)); <pre>'; // read in record until the record separator is encountered while (!feof(fp)) { line = ''; while (fp)) { c = fgetc(// split the line on the group separator tmp = explode(GS, record = array(); // timestamp is 15-characters long, the remaining is username tmp[0], 0, 15); tmp[0], 15)); tmp[1]); print_r(fp); echo '</pre>'; ?>
(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.