Re: Obtaining the base dir of a file in a web server
| From: | Leif Gregory | Date: | Mon, 17 Jan 2005 14:43:19 +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-206540@lists.php.net to get a copy of this message | ||
Hello Juan,
Monday, January 17, 2005, 2:23:23 AM, you wrote:
JAG> I use this sentence ($htmlFile = $_SERVER['DOCUMENT_ROOT'] ) for
JAG> obtaining the complete route of a file in my web server, but
JAG> inserts a white space to final char and i need remove it. I use
JAG> the trim function but it continue there. How can i remove it? Can
JAG> it be anohter char?
See if this does it.
$htmlFile = trim($_SERVER['DOCUMENT_ROOT']);
Cheers,
Leif Gregory
--
TB Lists Moderator (and fellow registered end-user)
PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F
Web Site <http://www.PCWize.com>