php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #11054 not a but, but feature request
Submitted: 2001-05-23 11:35 UTC Modified: 2001-05-23 12:18 UTC
From: hysteric at skynet dot be Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.0.4 OS: win NT 4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hysteric at skynet dot be
New email:
PHP Version: OS:

 

 [2001-05-23 11:35 UTC] hysteric at skynet dot be
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-23 11:37 UTC] zak@php.net
The __FILE__ constant contains the current line of the file.
 [2001-05-23 12:18 UTC] derick@php.net
Errr, the __FILE__ is for the filename, __LINE__ is for the line number.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 15:01:31 2025 UTC