note 71640 added to reserved.variables

From: Date: Sat, 09 Dec 2006 14:40:32 +0000
Subject: note 71640 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-120454@lists.php.net to get a copy of this message
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 ---- Server IP: 85.116.0.130 Probable Submitter: 62.252.96.22 (proxied: 82.27.75.173) ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit -- https://master.php.net/note/edit/71640 Del: integrated -- https://master.php.net/note/delete/71640/integrated Del: useless -- https://master.php.net/note/delete/71640/useless Del: bad code -- https://master.php.net/note/delete/71640/bad+code Del: spam -- https://master.php.net/note/delete/71640/spam Del: non-english -- https://master.php.net/note/delete/71640/non-english Del: in docs -- https://master.php.net/note/delete/71640/in+docs Del: other reasons-- https://master.php.net/note/delete/71640 Reject -- https://master.php.net/note/reject/71640 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120454) next »