note 52103 deleted from function.error-log by betz

From: Date: Thu, 21 Apr 2005 10:52:28 +0000
Subject: note 52103 deleted from function.error-log by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88332@lists.php.net to get a copy of this message
Note Submitter: christian dot schaefer at gmail dot com Reason: useless ---- I am not too sure about this, but I think I encountered an error here. or at least it's an odd behaviour. because I wanted to use this function but be able to configure the path to the logfile in one single file I put this path in a variable that is in an external file being included whereever I want to use error_log. but all the scripts in this form $logfile = "/tmp/mylog"; error_log ("something to log..", 3, $logfile); failed.. while error_log ("something to log..", 3, "/tmp/mylog"); works perfectly. eventually I used a define constant like this define ("logfile", "/tmp/mylog"); error_log ("something to log..", 3, logfile); and now everything is as expected! hope that helps? /christian

« previous php.notes (#88332) next »