note 52807 added to function.include
| From: | K dot Tomono at osu1 dot php dot net | Date: | Fri, 13 May 2005 06:16:26 +0000 |
| Subject: | note 52807 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89362@lists.php.net to get a copy of this message | ||
When you use remote file including via HTTP GET,
it will be of course parsed at local PHP environment of inner,
if the results from the target server are as the proper php code.
$ cat p.notphp
<?php phpinfo() ?>
".notphp" is not associated to application/x-httpd-php on the target server of course,
$ cat remoi.php
<?php include_once("http://target.localdomain/p.notphp");?>
Accessing remoi.php, then you will see the local phpinfo.
This matter might be merely the subject about this manual
doc notations.
But I cannot put on without this thing being well-known,
because of its concern with a social security reasons...
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52807
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52807&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52807&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52807&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52807&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52807&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52807&report=yes
Search -- http://master.php.net/manage/user-notes.php