> Peek-a-boo DOCUMENT_ROOT trailing slashes? No problem.

If hacks are your thing and you don't mind hacking every single site you put 
on the server. (I explained I had 60+ sites to migrate)

This fixes the symptom, not the problem.



----- Original Message ----- 
From: "lazydada" <[email protected]>
To: "NZ PHP Users Group" <[email protected]>
Sent: Tuesday, April 28, 2009 8:57 AM
Subject: [phpug] Re: DOCUMENT_ROOT trailing slash


>
> THANK YOU! (And your fancy-pants PHP).
> Peek-a-boo DOCUMENT_ROOT trailing slashes? No problem.
>
>>  $_SERVER['DOCUMENT_ROOT'] .=
>>  (substr($_SERVER['DOCUMENT_ROOT'],-1)=='/')?'':'/';
>
> A hack made in heaven.
>
> > 


--~--~---------~--~----~------------~-------~--~----~
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