note 99574 deleted from function.require by danbrown
| From: | danbrown@php.net | Date: | Wed, 25 Aug 2010 14:04:33 +0000 |
| Subject: | note 99574 deleted from function.require by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172057@lists.php.net to get a copy of this message | ||
Note Submitter: phoenixsnake at hotmail dot com
----
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" );
?>