CURLOPT_HEADER => 0
should probably be => 1.
$err = 0;
$err = curl_errno($ch);
if ($err!=0){
should simply be if($html===false)
also, this script got no cookie-support :p
$cookiefile=tmpfile();
curl_setopt($ch, CURLOPT_COOKIEFILE,$cookiefile);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.