Errr... ummmm... I should go to bed now... Thanks Derick! --zak ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 23, 2001 4:18 AM Subject: [PHP-DEV] Bug #11054 Updated: not a but, but feature request > ID: 11054 > Updated by: derick > Reported By: [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] [EMAIL PROTECTED] > The __FILE__ constant contains the current line of the file. > > -------------------------------------------------------------------------- - > > [2001-05-23 11:35:27] [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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]