Re: Finding out the local path to a file.

From: Date: Tue, 24 Feb 2004 11:39:58 +0000
Subject: Re: Finding out the local path to a file.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-178676@lists.php.net to get a copy of this message
Sadly, none of your tips works. __FILE__ shows the script filename, not to the path of the current dir. Where can I find out more about this kind of constants? Can't see it anywhere in the manual. The problem is this: DocumentRoot (/): D:/Web/htdocs/ Users (/~xxxxx/): D:/Web/users/ Stuff1 (/s1/): E:/Stuff1 # Alias in apache Stuff2 (/s2/): D:/Stuff2 # Alias in apache So when I surf to /s1/, the script in D:/Web/htdocs/list/lister.php is executed. Just aswell as it is when surfing to /s2/ or any other folder without any other indexfile. When surfing there, the only variable that is of any use to get the folder is $_SERVER['REQUEST_URI'], but it doesn't reveal the local path that I want. Any ideas on how to solve it? //Simon

« previous php.general (#178676) next »