revert to Wiki.php 1.28 and index.php 1.130
[mediawiki.git] / includes / ExternalStoreHttp.php
blobf818de1e21510e8763cca1fe5d66f2fa4ab5ca8b
1 <?php
2 /**
4 * @package MediaWiki
6 * Example class for HTTP accessable external objects
8 */
10 class ExternalStoreHttp {
11 /* Fetch data from given URL */
12 function fetchFromURL($url) {
13 ini_set( "allow_url_fopen", true );
14 $ret = file_get_contents( $url );
15 ini_set( "allow_url_fopen", false );
16 return $ret;
19 /* XXX: may require other methods, for store, delete,
20 * whatever, for initial ext storage