wiki.techinc.nl/includes/ExternalStoreHttp.php

24 lines
422 B
PHP
Raw Normal View History

<?php
/**
2006-01-07 13:09:30 +00:00
*
* @package MediaWiki
*
* Example class for HTTP accessable external objects
*
*/
2006-01-07 13:09:30 +00:00
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;
}
2006-01-07 13:09:30 +00:00
/* XXX: may require other methods, for store, delete,
* whatever, for initial ext storage
*/
}
?>