guess documentroot

From: Date: Thu, 05 Oct 2006 13:42:35 +0000
Subject: guess documentroot
Groups: php.general 
Request: Send a blank email to php-general+get-242663@lists.php.net to get a copy of this message
Hey all! Is it possible to get the path of a file relative to the document root of the webserver using php? For example... if we have a script like http://localhost/mydir/myseconddir/index.php is there a way to get that it's runing on /mydir/myseconddir/ ?? something like getcwd() but webserver relative, not filesystem. thanks a lot. greetings!

« previous php.general (#242663) next »