]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - includes/ExternalStoreHttp.php
MediaWiki 1.11.0
[autoinstalls/mediawiki.git] / includes / ExternalStoreHttp.php
1 <?php
2 /**
3  *
4  *
5  * Example class for HTTP accessable external objects
6  *
7  */
8
9 class ExternalStoreHttp {
10         /* Fetch data from given URL */
11         function fetchFromURL($url) {
12         ini_set( "allow_url_fopen", true );
13         $ret = file_get_contents( $url );
14         ini_set( "allow_url_fopen", false );
15                 return $ret;
16         }
17
18         /* XXX: may require other methods, for store, delete,
19          * whatever, for initial ext storage
20          */
21 }
22