aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ExternalStoreHttp.php
blob: d7c1cc818d8e1b93d925b190829e050bc2daa78a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * 
 * @package MediaWiki
 *
 * 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  
	 */
}
?>