Print current line of code?
Posted: Mon Aug 09, 2004 5:17 am
Hi
How can I output the executing code's linenumber?
regards tores
How can I output the executing code's linenumber?
regards tores
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
echo "a";
trigger_error("");
echo "b";
?>Code: Select all
if (db_result_count==0) {
die ('Database failure at '.basename(__FILE__).': Line'.__LINE__.'> Illegal SQL result';
}Code: Select all
error_reporting(E_ALL);
ini_set('display_errors', TRUE);