Skip to content

Instantly share code, notes, and snippets.

@EdwardIII
Created March 18, 2013 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EdwardIII/5186659 to your computer and use it in GitHub Desktop.
Save EdwardIII/5186659 to your computer and use it in GitHub Desktop.
function get_quote_from_http($in_filename){
$ch = curl_init($in_filename);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, $fp);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment