[PHP-DEV] Bug #11054 Updated: not a but, but feature request From: derick <email protected>
Date: 05/23/01

ID: 11054
Updated by: derick
Reported By: hysteric <email protected>
Status: Bogus
Bug Type: Feature/Change Request
Operating system:
PHP Version: 4.0.4
Assigned To:
Comments:

Errr, the __FILE__ is for the filename, __LINE__ is for the line number.

Previous Comments:
---------------------------------------------------------------------------

[2001-05-23 11:37:58] zak <email protected>
The __FILE__ constant contains the current line of the file.

---------------------------------------------------------------------------

[2001-05-23 11:35:27] hysteric <email protected>
No where in my book or on a site i can find some easy way to get the current script line.

E.g.: if i have some error, i'd like to display on wich line in the php file it has happend.

$query="update ...;";
mysql_db_query("web",$query,$link)
 or die("Error on line xxx of script myscript.php");

thanks

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11054&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>