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