note 76145 deleted from function.include by danbrown

From: Date: Mon, 18 May 2009 00:58:54 +0000
Subject: note 76145 deleted from function.include by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155458@lists.php.net to get a copy of this message
Note Submitter: adam at adamleayr dot id dot au ---- In response to oasis1 below, I use mod_rewrite to pipe all my requests through the index.php file, so I'm able to use the below code to find the root directory: $sRoot = $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']); You may be able to modify it to suit yourself.

« previous php.notes (#155458) next »