private function refresh_cache()
 {
     @unlink($this->_cache_file);
     $data = cge_http::get($this->_src_spec);
     if ($data) {
         @file_put_contents($this->_cache_file, $data);
     }
 }
Ejemplo n.º 2
0
 /**
  * Perform an HTTP GET request.
  *
  * @param string $URL the url to post to
  * @param string $referer An optional referrer string.
  * @return string
  */
 function http_get($URL, $referer = '')
 {
     return cge_http::get($URL, $referer);
 }