You are here: Re: [PHP] Obtaining the base dir of a file in a web server « PHP « IT news, forums, messages
Re: [PHP] Obtaining the base dir of a file in a web server

Posted by Leif Gregory on 01/17/05 16:43

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>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация