Re: complete path

From: Date: Sat, 08 Jul 2000 20:53:23 +0000
Subject: Re: complete path
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5563@lists.php.net to get a copy of this message
> I remember there was a server.mappath command in asp to view the actual > path of any location (eg. c:\httpd for omni)... I was wondering if the > PATH variable is the equivalent of that command in php? Or is there any > way of retrieving the actual path of a location while using php? it depends on the server you are running on, but in general $SCRIPT_LOCATION is what you want. Run <? phpinfo(); ?> and read the webserver environment section if this doesn't work on your server. Another useful variable is $PHP_SELF which contains the location on the webserver of the script (for using like <form action=\"$PHP_SELF\">)

« previous php.general (#5563) next »