note 59190 added to ref.apache

From: Date: Tue, 29 Nov 2005 03:41:09 +0000
Subject: note 59190 added to ref.apache
Groups: php.notes 
Request: Send a blank email to php-notes+get-99272@lists.php.net to get a copy of this message
here is a dynamic version of henk_nicolai at REMOVE-THIS at hotmail dot com's code $req = $_SERVER['REQUEST_URI']; // Remove rubbish. $newReq = ereg_replace ( $_SERVER['SCRIPT_NAME'] . '[^?]*', $_SERVER['SCRIPT_NAME'], $req); if (strlen($newReq) < strlen($req)) { header ('Location: '.$newReq); header ('HTTP/1.0 301 Moved Permanently'); die; // Don't send any more output. } unset($req); unset($newReq); this can be placed at the top of any file that is to be access by the URI. ---- Manual Page -- http://www.php.net/manual/en/ref.apache.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59190 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59190&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59190&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59190&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59190&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59190&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59190&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59190&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59190&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99272) next »