note 27539 added to features.remote-files
| From: | buht at mail dot ru | Date: | Tue, 10 Dec 2002 09:16:07 +0000 |
| Subject: | note 27539 added to features.remote-files | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40644@lists.php.net to get a copy of this message | ||
I`ve read all that You say and try to do next two simple files.
First file make include throught Web:
<?php
include('http://YourTempAddress/test.php');
?>
Second File (test.php) make output as html, but result is the new php script:
<?
echo "<?\$ip=getenv('REMOTE_HOST');echo \"IP=\$ip;\";?>";
?>
That work perfectly without searching of server that does not support of php scripts but allow to
store php files on it. Extention is also not important.
So that is more secure to reject using of including through Web.
But know somebody any other possibility to include a document as it from another URL using php?
--
http://www.php.net/manual/en/features.remote-files.php
http://master.php.net/manage/user-notes.php?action=edit+27539
http://master.php.net/manage/user-notes.php?action=delete+27539
http://master.php.net/manage/user-notes.php?action=reject+27539