* Added a test for a link with multiple pipes
[lhc/web/wiklou.git] / includes / ExternalStoreHttp.php
1 <?php
2 /**
3 *
4 * @package MediaWiki
5 *
6 * Example class for HTTP accessable external objects
7 *
8 */
9
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;
17 }
18
19 /* XXX: may require other methods, for store, delete,
20 * whatever, for initial ext storage
21 */
22 }
23 ?>