note 87257 added to function.defined

From: Date: Wed, 26 Nov 2008 21:12:43 +0000
Subject: note 87257 added to function.defined
Groups: php.notes 
Request: Send a blank email to php-notes+get-147002@lists.php.net to get a copy of this message
To the anonymous post on Oct, 2008: <?php if (!defined('SITE_IN') or !constant('SITE_IN')) die('Direct access not allowed!'); ?> 1. Don't use "or" in an if statement, use || 2. !constant('SITE_IN') -- This doesn't really add any protection & is unnecessary. ---- Server IP: 64.71.164.2 Probable Submitter: 209.98.85.81 ---- Manual Page -- http://www.php.net/manual/en/function.defined.php Edit -- https://master.php.net/note/edit/87257 Del: integrated -- https://master.php.net/note/delete/87257/integrated Del: useless -- https://master.php.net/note/delete/87257/useless Del: bad code -- https://master.php.net/note/delete/87257/bad+code Del: spam -- https://master.php.net/note/delete/87257/spam Del: non-english -- https://master.php.net/note/delete/87257/non-english Del: in docs -- https://master.php.net/note/delete/87257/in+docs Del: other reasons-- https://master.php.net/note/delete/87257 Reject -- https://master.php.net/note/reject/87257 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147002) next »