Re: Getting path of currently executing file from within stream_opener handler
| From: | Marshall Greenblatt | Date: | Sun, 18 Nov 2007 01:55:31 +0000 |
| Subject: | Re: Getting path of currently executing file from within stream_opener handler | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33233@lists.php.net to get a copy of this message | ||
Hi Antony,
On Nov 17, 2007 5:21 AM, Antony Dovgal <tony@daylessday.org> wrote:
> On 17.11.2007 11:23, Marshall Greenblatt wrote:
> > Is there a method that can be used from within the stream_opener
> > handler function to retrieve the path of the file currently being
> > processed?
>
> Yes, zend_get_executed_filename().
> Though, I believe you actually need expand_filepath(), which does exactly what you said,
> i.e. resolves relative paths.
Thank you for your quick response. zend_get_executed_filename()
allowed me to do exactly what I was looking for.
>
> --
> Wbr,
> Antony Dovgal
>
Regards,
Marshall