note 61747 added to function.include
| From: | yellow1912 at yahoo dot com | Date: | Fri, 10 Feb 2006 18:40:34 +0000 |
| Subject: | note 61747 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-103468@lists.php.net to get a copy of this message | ||
I was wondering that this means "This is not, however, possible when including remote files
unless the output of the remote file has valid PHP start and end tags (as with any local file). You
can declare the needed variables within those tags and they will be introduced at whichever point
the file was included."
Anyway, found out how to do this:
if in the remote file, you use this:
echo '<?php return($result=false); ?>';
Then $result can be used in the main file.
----
Server IP: 216.194.113.175
Probable Submitter: 24.242.246.10
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61747
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61747&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61747&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61747&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61747&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61747&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61747&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61747&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61747&report=yes
Search -- http://master.php.net/manage/user-notes.php