Is there any way (on Windows) to determine, from within php, the
directory that it is running from? In other words, what is the path to
PHP? This particularly concerns the CLI php versions. On Linux, it
has been suggested to do:
which php
but even this wouldn't help me since that would just show A php on the
include path and not necessarily the currently executing instance.
Also, getcwd() at startup only shows the path that php was started from
and __FILE__ and phpinfo() do not offer this info either.
Thanks,
Csaba Gabor from Vienna
directory that it is running from? In other words, what is the path to
PHP? This particularly concerns the CLI php versions. On Linux, it
has been suggested to do:
which php
but even this wouldn't help me since that would just show A php on the
include path and not necessarily the currently executing instance.
Also, getcwd() at startup only shows the path that php was started from
and __FILE__ and phpinfo() do not offer this info either.
Thanks,
Csaba Gabor from Vienna
Comment