note 123323 added to function.include-once
| From: | m_r_lister.yahoo.com via php-notes | Date: | Thu, 08 Nov 2018 23:04:08 +0000 |
| Subject: | note 123323 added to function.include-once | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209652@lists.php.net to get a copy of this message | ||
<?php
/** The following will result in false for both instances because the second instance is overwriting
the first.
Which means that the included file is only loading for the first time during the second instance.
**/
$result = include_once 'fakefile.php'; // this will result as false
$result = include_once 'fakefile.php'; // this will result as false
/** include_once will result in false on the first instance of it. **/
$result1 = include_once 'fakefile.php'; // this will result as false
/** include_once will result in true on the second instance of it. **/
$result2 = include_once 'fakefile.php'; // this will result as true
----
Server IP: 208.43.231.9
Probable Submitter: 172.251.200.39
----
Manual Page -- http://php.net/manual/en/function.include-once.php
Edit -- https://master.php.net/note/edit/123323
Del: integrated -- https://master.php.net/note/delete/123323/integrated
Del: useless -- https://master.php.net/note/delete/123323/useless
Del: bad code -- https://master.php.net/note/delete/123323/bad+code
Del: spam -- https://master.php.net/note/delete/123323/spam
Del: non-english -- https://master.php.net/note/delete/123323/non-english
Del: in docs -- https://master.php.net/note/delete/123323/in+docs
Del: other reasons-- https://master.php.net/note/delete/123323
Reject -- https://master.php.net/note/reject/123323
Search -- https://master.php.net/manage/user-notes.php