00001 <?php 00007 class ExternalStoreHttp { 00008 /* Fetch data from given URL */ 00009 function fetchFromURL($url) { 00010 ini_set( "allow_url_fopen", true ); 00011 $ret = file_get_contents( $url ); 00012 ini_set( "allow_url_fopen", false ); 00013 return $ret; 00014 } 00015 00016 /* XXX: may require other methods, for store, delete, 00017 * whatever, for initial ext storage 00018 */ 00019 }