/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function wlog($m=""){ $myFile = "/tmp/shib.log"; #log path $stringData = $m."\n"; if($m==""){$stringData = "\n";}; }; /* Usage : wlog("Write this to log..."); wlog(); wlog("New line..."); ---- System usage: tail -f /tmp/shib.log */ ?>