Bluehost.com Web Hosting $6.95

Re: line number of error variable ??

This is a discussion on Re: line number of error variable ?? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; > I am looking to just print out the line number a warning occurred on. > Is there a $LINENO ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-10-2004
Hilarion
 
Posts: n/a
Default Re: line number of error variable ??

> I am looking to just print out the line number a warning occurred on.
> Is there a $LINENO or __LINE__ variable?
>
> Also is there a variable that holds the name of the current script
> being run?


Available predefined constants:
__LINE__
__FILE__
__FUNCTION__
__CLASS__
__METHOD__

Available related predefined variables:
$_SERVER['PHP_SELF'] - this differs from __FILE__ !! (try in included files)
$_SERVER['DOCUMENT_ROOT']
$_SERVER['SCRIPT_FILENAME']
$_SERVER['PATH_TRANSLATED']
$_SERVER['SCRIPT_NAME']


Hilarion


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0