comparison dlog.php @ 57:7f90ac957713

necessary when included inside a function
author Charlie Root
date Sun, 09 Jun 2019 06:47:19 -0400
parents dbc006408d2b
children
comparison
equal deleted inserted replaced
56:5f772caee9a7 57:7f90ac957713
1 <?php 1 <?php
2 global $logfile;
2 if (isset($_SERVER['DOCUMENT_ROOT'])) { 3 if (isset($_SERVER['DOCUMENT_ROOT'])) {
3 $logfile=$_SERVER['DOCUMENT_ROOT']."/debug/debug.log"; 4 $logfile=$_SERVER['DOCUMENT_ROOT']."/debug/debug.log";
4 } 5 }
5 else { 6 else {
6 $logfile="/tmp/php_debug.log"; 7 $logfile="/tmp/php_debug.log";