Obtaining the base dir of a file in a web server
| From: | Juan Antonio Garrido | Date: | Mon, 17 Jan 2005 09:23:23 +0000 |
| Subject: | Obtaining the base dir of a file in a web server | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-206525@lists.php.net to get a copy of this message | ||
Hi everybody:
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?
--
-------------------------------------------
Juan Antonio Garrido Mata
Emergya S.C.A
Tel. +34 954 98 10 53 FAX +34 954 98 11 79
Avda. Luis Montoto, 105.
E41007 - Sevilla(España)
jagarrido@emergya.info
http://www.emergya.info
-------------------------------------------