note 89162 added to function.exit

From: Date: Tue, 24 Feb 2009 20:26:57 +0000
Subject: note 89162 added to function.exit
Groups: php.notes 
Request: Send a blank email to php-notes+get-151080@lists.php.net to get a copy of this message
If you are retroactively going through included files to prevent them from being accessed, you can use the following. <?php if($_SERVER['SCRIPT_FILENAME'] == __FILE__ ) header('location: /'); // or exit(); // rest of code ?> ---- Server IP: 64.71.164.2 Probable Submitter: 148.129.74.42 ---- Manual Page -- http://www.php.net/manual/en/function.exit.php Edit -- https://master.php.net/note/edit/89162 Del: integrated -- https://master.php.net/note/delete/89162/integrated Del: useless -- https://master.php.net/note/delete/89162/useless Del: bad code -- https://master.php.net/note/delete/89162/bad+code Del: spam -- https://master.php.net/note/delete/89162/spam Del: non-english -- https://master.php.net/note/delete/89162/non-english Del: in docs -- https://master.php.net/note/delete/89162/in+docs Del: other reasons-- https://master.php.net/note/delete/89162 Reject -- https://master.php.net/note/reject/89162 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151080) next »