You can use the 'magic constants' __FILE__ and __LINE__ For example, if you have an editor that can replace the newline "\n" character, you can replace all "\n" with "\nerror_log(__FILE__ . '[' . __LINE__ . ']');"
"Nico Van Der Dussen" <[EMAIL PROTECTED]> wrote in message 3CC45EB5.6064.19C3129@localhost">news:3CC45EB5.6064.19C3129@localhost... > Hi, > > I'm having a real problem: > > In a codeset of more than 5000 lines of code, I have a rogue call to a > function. > > Is there a way I can determine in a function from where the call was > made? (Filename, linenumber etc) > > Thanks > > Nico > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php