Revision: 9695
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 18, 2008 05:19 by Zver
Initial Code
<?php
function wlog($m=""){
$myFile = "/tmp/shib.log"; #log path
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = $m."\n";
if($m==""){$stringData = "\n";};
fwrite($fh, $stringData);
fclose($fh);
};
/* Usage :
wlog("Write this to log...");
wlog();
wlog("New line...");
----
System usage:
tail -f /tmp/shib.log
*/
?>
Initial URL
Initial Description
Initial Title
Simple log like system
Initial Tags
linux, log
Initial Language
PHP