note 87257 deleted from function.defined by danbrown
| From: | danbrown@php.net | Date: | Wed, 26 Nov 2008 21:16:49 +0000 |
| Subject: | note 87257 deleted from function.defined by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147005@lists.php.net to get a copy of this message | ||
Note Submitter: JeremyK
----
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.