note 73196 added to function.include
| From: | anon at osu1 dot php dot net | Date: | Tue, 13 Feb 2007 01:49:53 +0000 |
| Subject: | note 73196 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123298@lists.php.net to get a copy of this message | ||
Be careful using the <?= / ?> start and end tags with include / require.
A lovely feature/bug/misunderstanding meant that the result of
<?=include(filename)?>
was to get the contents of the file, suffixed with a '1'. I can only assume that the one
is the return code of the include.
hopefully my pain can help somebody else :D
cheers,
coldflame
----
Server IP: 203.220.0.234
Probable Submitter: 211.27.111.190
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- https://master.php.net/note/edit/73196
Del: integrated -- https://master.php.net/note/delete/73196/integrated
Del: useless -- https://master.php.net/note/delete/73196/useless
Del: bad code -- https://master.php.net/note/delete/73196/bad+code
Del: spam -- https://master.php.net/note/delete/73196/spam
Del: non-english -- https://master.php.net/note/delete/73196/non-english
Del: in docs -- https://master.php.net/note/delete/73196/in+docs
Del: other reasons-- https://master.php.net/note/delete/73196
Reject -- https://master.php.net/note/reject/73196
Search -- https://master.php.net/manage/user-notes.php