Mercurial > hg > ywww
view dlog.php @ 44:38d209611508
change includes to assume (contra previos ASSUMES) that we have .user.ini which adds /var/test to include_path
author | Charlie Root |
---|---|
date | Sun, 06 Jan 2019 07:17:03 -0500 |
parents | dbc006408d2b |
children | 7f90ac957713 |
line wrap: on
line source
<?php if (isset($_SERVER['DOCUMENT_ROOT'])) { $logfile=$_SERVER['DOCUMENT_ROOT']."/debug/debug.log"; } else { $logfile="/tmp/php_debug.log"; } function dl($s) { global $logfile; file_put_contents($logfile,$s,FILE_APPEND); }