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 Richard Lynch on 01/18/05 19:35

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

 

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

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