I guess that is not possible with PHP yet.
"Jason G." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anyone know of a way, that from within a function, you can determine
> what line number and file the function was called on?
> I did try:
> function myfunc($lineno = __LINE__)
> echo $lineno;
> but this just outputted the very line that __LINE__ resides on.
> This would be very helpful in displaying sensible error messages, like the
> native php functions do.
> -Jason Garber
PHP General 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]