| Newsgroups |
gmane.comp.web.curl.php |
| Message-ID |
<[email protected]> |
Hi Guys,
I am trying to use this curl function below:
function file_get_contents_curl($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
When I use php's function: file_get_contents the quotes appear.
But when using the function above I just get this: u0026quot;
Is there anything I can pass in the function so this is read correctly?
Many thanks,
Wes
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php