NYCPHP Meetup

NYPHP.org

[nycphp-talk] $_SERVER['DOCUMENT_ROOT']

Shawn Lawyer shawn at shawnlawyer.com
Fri Dec 17 03:00:07 EST 2004


>From when I was a little Kiddie

function docRoot()
{ return str_repeat('../', substr_count($_SERVER['REQUEST_URI'], "/")-1); }

$docRoot=docRoot();

> does anyone know a work around for the lack of $_SERVER['DOCUMENT_ROOT'] 
> on windows 2003 servers

Shawn Lawyer





More information about the talk mailing list