|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-05 02:34 UTC] rasmus at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 00:00:02 2025 UTC |
Including or requiring a file that looks like this: <? if (defined('MY_INCLUDE_FILE')) { return; } define('MY_INCLUDE_FILE', 1); ... ?> causes a parser error on the last line of the main script if this file is included more than once. The parser error can be silenced by adding one } to the end of the main script for each time that "return" executes. For example, if that file is included 3 times, }} must be added to the end of the script.