note 71640 deleted from reserved.variables by bjori

From: Date: Sat, 09 Dec 2006 20:19:02 +0000
Subject: note 71640 deleted from reserved.variables by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-120460@lists.php.net to get a copy of this message
Note Submitter: rick dot huby at e-connected dot com Reason: still bad code ---- The code I posted previously only works in the actual root directory. The code below works in any directory: $server_root = str_replace( (str_replace( "/", '\\\\', $_SERVER['PHP_SELF'] )), "", $_SERVER['PATH_TRANSLATED'] ) .'\\\\'; //For IIS if ( $server_root == "" ) $server_root = $_SERVER['DOCUMENT_ROOT']; //For APACHE

« previous php.notes (#120460) next »