note 117085 added to function.require
| From: | volter925 at gmail dot com | Date: | Mon, 13 Apr 2015 17:41:05 +0000 |
| Subject: | note 117085 added to function.require | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202247@lists.php.net to get a copy of this message | ||
If you're trying to use require/include in combination with and/&& and exit/die (to
require/include file and then stop the execution of script in one line):
<?php require $file and exit; ?>
Don't forget to put parentheses around require/include statement:
<?php (require $file) and exit; ?>
Otherwise, $file wouldn't be executed for some reason.
----
Server IP: 72.52.91.14
Probable Submitter: 23.242.207.131
----
Manual Page -- http://php.net/manual/en/function.require.php
Edit -- https://master.php.net/note/edit/117085
Del: integrated -- https://master.php.net/note/delete/117085/integrated
Del: useless -- https://master.php.net/note/delete/117085/useless
Del: bad code -- https://master.php.net/note/delete/117085/bad+code
Del: spam -- https://master.php.net/note/delete/117085/spam
Del: non-english -- https://master.php.net/note/delete/117085/non-english
Del: in docs -- https://master.php.net/note/delete/117085/in+docs
Del: other reasons-- https://master.php.net/note/delete/117085
Reject -- https://master.php.net/note/reject/117085
Search -- https://master.php.net/manage/user-notes.php