note 4512 deleted from Constants by ronabop

From: Date: Sun, 03 Sep 2000 20:35:09 +0000
Subject: note 4512 deleted from Constants by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-4085@lists.php.net to get a copy of this message
Is it possible to get the line number in the calling file? At the moment I'm having to actually pass it into the function: <pre> query("SELECT...", __LINE__, __FILE__); function query($query, $line, $file) { $result = mysql_query... if (!$result) log_error(mysql_error(), $line, $file...) }</pre>

« previous php.notes (#4085) next »