Re: Obtaining the base dir of a file in a web server

From: Date: Tue, 18 Jan 2005 17:35:02 +0000
Subject: Re: Obtaining the base dir of a file in a web server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206665@lists.php.net to get a copy of this message
Juan Antonio Garrido wrote: > I use this sentence ($htmlFile = $_SERVER['DOCUMENT_ROOT'] ) for obtaining > the > complete route of a file in my web server, but inserts a white space to > final char and i need remove it. I use the trim function but it continue > there. How can i remove it? Can it be anohter char? There shouldn't be an extra character there, space or otherwise... Check your httpd.conf to see what you've got. Perhaps a typo there with an extra space or control character that doesn't bother anything else, but shows up in your script. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#206665) next »