Re: How to get script filename in module RINIT function
| From: | Richard Quadling | Date: | Wed, 11 Aug 2010 10:17:29 +0000 |
| Subject: | Re: How to get script filename in module RINIT function | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49321@lists.php.net to get a copy of this message | ||
On 9 August 2010 12:32, Bostjan Skufca <bostjan@a2o.si> wrote:
> Hi all!
>
> I am developing a small PHP extension and I ATM can't figure out how to get
> to $_SERVER['SCRIPT_FILENAME'] content while in PHP_RINIT or PHP_RSHUTDOWN
> function. Can someone please hint me with this one?
>
> Thanks,
> b.
>
If the script is run via the command line (in my limited experience,
this would be the CLI, CGI, FastCGI SAPIs, others also maybe), can't
you look through the command line parameters?
--
Richard Quadling.