comparison dlog.php @ 43:dbc006408d2b

ASSUMES we have SetEnv PHP_VALUE "include_path =.:/var/test/private:/var/test/ywww:/usr/share/php" in apache2/.../test.conf use dl(...) for debug logging, defined in dlog.php use doAmazonRequest in amazonBookSearch use ../private/web.php (q.v., not in mercurial) for Aserver and Aassociates Started by updating from 40:c24ae74bf6d5, i.e. just before the bug on the main line
author Charlie Root
date Sat, 05 Jan 2019 18:00:10 -0500
parents
children 7f90ac957713
comparison
equal deleted inserted replaced
42:3f400072bf14 43:dbc006408d2b
1 <?php
2 if (isset($_SERVER['DOCUMENT_ROOT'])) {
3 $logfile=$_SERVER['DOCUMENT_ROOT']."/debug/debug.log";
4 }
5 else {
6 $logfile="/tmp/php_debug.log";
7 }
8
9 function dl($s) {
10 global $logfile;
11 file_put_contents($logfile,$s,FILE_APPEND);
12 }