current line

<me> is there a was to output the line where a die() or exit() is run ? or anywhere like print get_current_line(); ?
<me> anyone has any lead on how I can can output the current line of a script ?
<Viper-7> me: __FILE__ and __LINE__ will give you the basics, debug_backtrace() will give you alot more detail about how it got there
<me> Viper-7: thank you kindly !
<Viper-7> http://php.net/manual/en/language.constants.predefined.php

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions. You may reload the page to have a different question.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.

Skip CAPTCHA

Become a member to make it go away !