note 68714 added to function.include

From: Date: Tue, 08 Aug 2006 15:33:01 +0000
Subject: note 68714 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-115654@lists.php.net to get a copy of this message
If a person directly accesses an include file by mistake, you may want to forward them to a correct default page. Do this by: Say the file to be included is 'newpubs.php' and the main pages are either newpubs_e.php or newpubs_f.php if($_SERVER[PHP_SELF]=="/newpubs.php") { header("Location: newpubs_e.php"); exit; } Will send them to newpubs_e.php if they try to access newpubs.php directly. ---- Server IP: 216.235.15.211 Probable Submitter: 132.156.148.13 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- https://master.php.net/note/edit/68714 Del: integrated -- https://master.php.net/note/delete/68714/integrated Del: useless -- https://master.php.net/note/delete/68714/useless Del: bad code -- https://master.php.net/note/delete/68714/bad+code Del: spam -- https://master.php.net/note/delete/68714/spam Del: non-english -- https://master.php.net/note/delete/68714/non-english Del: in docs -- https://master.php.net/note/delete/68714/in+docs Del: other reasons-- https://master.php.net/note/delete/68714 Reject -- https://master.php.net/note/reject/68714 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115654) next »