note 99574 added to function.require
| From: | phoenixsnake at hotmail dot com | Date: | Wed, 25 Aug 2010 07:30:27 +0000 |
| Subject: | note 99574 added to function.require | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172027@lists.php.net to get a copy of this message | ||
Another way to accomplish task like "pinclude() [by carlo_greco at live dot it]" is use
file_get_contents() and put the full http path before it.
<?php
function http_get( $path ){
return file_get_contents( $path );
}
//You can put a line below in configuration if you like
$absolute_path = "http://www.example.com/";
$parametered_content = http_get( $absolute_path. "a.php?page=1" );
?>
----
Server IP: 69.147.83.197
Probable Submitter: 58.10.189.185
----
Manual Page -- http://www.php.net/manual/en/function.require.php
Edit -- https://master.php.net/note/edit/99574
Del: integrated -- https://master.php.net/note/delete/99574/integrated
Del: useless -- https://master.php.net/note/delete/99574/useless
Del: bad code -- https://master.php.net/note/delete/99574/bad+code
Del: spam -- https://master.php.net/note/delete/99574/spam
Del: non-english -- https://master.php.net/note/delete/99574/non-english
Del: in docs -- https://master.php.net/note/delete/99574/in+docs
Del: other reasons-- https://master.php.net/note/delete/99574
Reject -- https://master.php.net/note/reject/99574
Search -- https://master.php.net/manage/user-notes.php