Re: Finding URL from path

From: Date: Thu, 24 Aug 2000 18:55:54 +0000
Subject: Re: Finding URL from path
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13501@lists.php.net to get a copy of this message
If I understand what you're asking, you want to know if there's any correlation between the physical directory on the server and the URL. There's no direct correlation. Say you have the domain 'mydomain.com', the path might be something like '/home/sites/somedirectory/whatever'. It depends on how the person running the Web server set it up. Now if you just what the location of the current file, try $PHP_SELF. That will give you the relative address. ----- Original Message ----- From: "Adam Charnock" <adamcharnock@btinternet.com> To: <php-general@lists.php.net> Sent: Thursday, August 24, 2000 1:42 PM Subject: [PHP] Finding URL from path > Hi all. Is there a function that will allow me to feed it a server path and > it will return me with the relevant URL for the file? > > Thank you > Adam Charnock > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#13501) next »