Re: Getting current line from source code
| From: | Rasmus Lerdorf | Date: | Mon, 31 Jul 2000 20:29:16 +0000 |
| Subject: | Re: Getting current line from source code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9266@lists.php.net to get a copy of this message | ||
> > > Is it possible to attach the line no. and filename (might be an include)
> > > to a message passed to die() ?
> >
> > die(sprintf("file: %s line: %s",__FILE__,__LINE__));
>
> not really what i thought of as i wanted to use it to handle errors that occur
> within an object method.
>
> tks anyway!
This works fine inside a class method.
-Rasmus