RE: [PHP] document root

From: Date: Thu, 18 Apr 2002 00:49:55 +0000
Subject: RE: [PHP] document root
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93459@lists.php.net to get a copy of this message
Thanks Miquel, I asked it hopeless. Senih -----Original Message----- From: Miguel Cruz [mailto:mnc@stoic.net] Sent: Thursday, April 18, 2002 3:25 AM To: Senih Özkiper Cc: php-general@lists.php.net Subject: Re: [PHP] document root On Thu, 18 Apr 2002, [iso-8859-9] Senih Özkiper wrote: > What is the best way, to find out the directory, where web documents stored, > on a .nix web server? > I need that, because I want to install my application files on customers web > server directly and automatically from my web server using ftp. > > Better to explain; > > If for example header("Location:www.someweb.com") would be possible, I could > do it with > > getenv("DOCUMENT_ROOT"); Well, the only way you'd be able to do that is by running PHP code local to the server, and you'd only be able to do that once you're already installed. Makes more sense to just ask them - since there are all sorts of possibilities with virtual hosts, etc. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#93459) next »