summaryrefslogtreecommitdiff
path: root/includes/ExternalStoreHttp.php
blob: e6656986bce365d8692e78047c56c81a3a27b807 (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
	 */
}
?>