Re: Getting path of currently executing file from within stream_opener handler

From: Date: Sat, 17 Nov 2007 10:21:38 +0000
Subject: Re: Getting path of currently executing file from within stream_opener handler
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-33219@lists.php.net to get a copy of this message
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. -- Wbr, Antony Dovgal

« previous php.internals (#33219) next »