note 108329 added to reserved.variables.server

From: Date: Tue, 17 Apr 2012 16:43:37 +0000
Subject: note 108329 added to reserved.variables.server
Groups: php.notes 
Request: Send a blank email to php-notes+get-187209@lists.php.net to get a copy of this message
Proccess path_info <?php function get_path_info() { if( ! array_key_exists('PATH_INFO', $_SERVER) ) { $pos = strpos($_SERVER['REQUEST_URI'], $_SERVER['QUERY_STRING']); $asd = substr($_SERVER['REQUEST_URI'], 0, $pos - 2); $asd = substr($asd, strlen($_SERVER['SCRIPT_NAME']) + 1); return $asd; } else { return trim($_SERVER['PATH_INFO'], '/'); } } ---- Server IP: 69.147.83.197 Probable Submitter: 186.22.89.197 ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.server.php Edit -- https://master.php.net/note/edit/108329 Del: integrated -- https://master.php.net/note/delete/108329/integrated Del: useless -- https://master.php.net/note/delete/108329/useless Del: bad code -- https://master.php.net/note/delete/108329/bad+code Del: spam -- https://master.php.net/note/delete/108329/spam Del: non-english -- https://master.php.net/note/delete/108329/non-english Del: in docs -- https://master.php.net/note/delete/108329/in+docs Del: other reasons-- https://master.php.net/note/delete/108329 Reject -- https://master.php.net/note/reject/108329 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187209) next »