note 63683 added to function.include-once

From: Date: Tue, 28 Mar 2006 09:53:07 +0000
Subject: note 63683 added to function.include-once
Groups: php.notes 
Request: Send a blank email to php-notes+get-106833@lists.php.net to get a copy of this message
It seems that the include_once() doesn’t affect double includes in included files... Example: <?php include_once("foo.php"); if ($something) { include("bar.php"); } else { do(); } ?> bar.php: <?php include_once("foo.php"); // This will be included again! do(); ?> ---- Server IP: 194.239.128.8 Probable Submitter: 80.196.93.178 ---- X-Spam-Status: Yes, hits=7.4 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HEAD_ILLEGAL_CHARS autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.include-once.php Edit -- http://master.php.net/note/edit/63683 Del: integrated -- http://master.php.net/note/delete/63683/integrated Del: useless -- http://master.php.net/note/delete/63683/useless Del: bad code -- http://master.php.net/note/delete/63683/bad+code Del: spam -- http://master.php.net/note/delete/63683/spam Del: non-english -- http://master.php.net/note/delete/63683/non-english Del: in docs -- http://master.php.net/note/delete/63683/in+docs Del: other reasons-- http://master.php.net/note/delete/63683 Reject -- http://master.php.net/note/reject/63683 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106833) next »