topical media & game development

talk show tell print

lib-flex-service-flickr-proxy.php / php



  <?php
  
  // initialize variables
  url = _GET['url'];
  timeout = 5;
  ch = curl_init();
          
  // set up cURL resource
  curl_setopt (ch, CURLOPT_URL, url);
  curl_setopt (ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt (ch, CURLOPT_CONNECTTIMEOUT, timeout);
  
  // grab URL and return contents
  url_contents = curl_exec(ch);
  
  // close cURL resourse
  curl_close(ch);
          
  // display contents
  echo url_contents;
  
  ?>


(C) Æliens 18/6/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.