note 36314 added to function.constant
| From: | mina86 at tlen dot pl | Date: | Sat, 04 Oct 2003 19:10:09 +0000 |
| Subject: | note 36314 added to function.constant | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-57819@lists.php.net to get a copy of this message | ||
re PHPdotNET at 19-Oct-2002 08:02:
it is better tu use (no warning is generated so you don't have to use '@'):
<?php
if (!defined("<file-id>")) {
define("<file-id>", true);
// script content
}
?>
or
<?php
if (defined("<file-ide">)) return;
// script content
?>
You could also consider using include_once() and/or require_once();
----
Manual Page -- http://www.php.net/manual/en/function.constant.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36314
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36314&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36314&report=yes
Search Tool -- http://master.php.net/manage/user-notes.php