wiki.techinc.nl/includes/ExternalStoreHttp.php

20 lines
421 B
PHP
Raw Normal View History

<?php
/**
* Example class for HTTP accessable external objects
*
* @ingroup ExternalStorage
*/
class ExternalStoreHttp {
/* Fetch data from given URL */
function fetchFromURL($url) {
2008-01-29 11:10:33 +00:00
ini_set( "allow_url_fopen", true );
$ret = file_get_contents( $url );
ini_set( "allow_url_fopen", false );
return $ret;
}
2006-01-07 13:09:30 +00:00
/* XXX: may require other methods, for store, delete,
* whatever, for initial ext storage
*/
}