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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux