wiki.techinc.nl/includes/ExternalStoreHttp.php
Siebrand Mazeland 79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00

21 lines
400 B
PHP

<?php
/**
*
*
* Example class for HTTP accessable external objects
*
*/
class ExternalStoreHttp {
/* Fetch data from given URL */
function fetchFromURL($url) {
ini_set( "allow_url_fopen", true );
$ret = file_get_contents( $url );
ini_set( "allow_url_fopen", false );
return $ret;
}
/* XXX: may require other methods, for store, delete,
* whatever, for initial ext storage
*/
}