blob: daf62cc4459bd75af24bfc8d0c09ee5c48517730 (
plain)
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
*/
}
?>
|