Aaron Cooper a écrit :
> Hi all,
> 
> We have a new dedicated server and $_SERVER['DOCUMENT_ROOT'] is returning the 
> correct document root with no trailing slash.
> 
> On all our old servers, it would return it with a trailing slash. So we have 
> alot of sites that require a bit of adjustment for this new box
> 
> Is this configurable and would it be managed by php.ini or Apache?
> 
> Arguments for and against the trailing slash (or another more portable way of 
> obtaining the docroot) is welcome.
> 
> Cheers
> Aaron

If you want this behaviour at the server level, you can use mod_dir with 
the DirectorySlash directive.  The details are in the Apache server 
documentation.

Regards,
Carlos

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to