You are here: Re: Self location.... « PHP Programming Language « IT news, forums, messages
Re: Self location....

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)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация