Reply to Re: finding local path on server

Your name:

Reply:


Posted by Jonathan N. Little on 10/08/07 17:14

ll wrote:
> I'm trying to see if there is a way to determine the 'local path' on a
> server (as opposed to the url path) via application, etc?
>
> For example:
>
> $parent_url = "http://www.testsite.org/upload/";
> $parent_dir = "c:\\public_html\\upload\\";

Well it looks like possibly PHP?

then

$me = $_SERVER['SCRIPT_FILENAME'];

will have the path with the script file name that you can remove.

or it might be Perl:

my $me = $ENV{'SCRIPT_NAME'};

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

[Back to original 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

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