Posted by Kim Andrι Akerψ on 07/18/06 15:22
Sonnich wrote:
> Hi!
>
> Is there are way, so I can retrieve the filename being runned and/or
> its location?
>
> Currently it is C:\Inetpub\wwwroot\JOTIntranet\modules\helloworld\ but
> that might change. I need to create some temporary files in the same
> catalog.
$_SERVER["SCRIPT_FILENAME"] usually reveals the full path of the
current script on the server. Combined with dirname(), you can find the
location of the directory the script is located in.
Also, getcwd() will return the current working directory.
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
[Back to original message]
|