note 82997 deleted from function.basename by bjori

From: Date: Tue, 06 May 2008 19:58:38 +0000
Subject: note 82997 deleted from function.basename by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-139110@lists.php.net to get a copy of this message
Note Submitter: ash Reason: useless ---- if you want to make sure a file has been included and not been accessed directly: <?php if (basename($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)) { exit('file cannot be accessed directly.'); } ?>

« previous php.notes (#139110) next »