I am using the following code:
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_TIMEOUT, 12); $result = curl_exec($ch);
after php 5.1 curl will display always result you can view in documentation. for avoid it simply use
curl
echo "< span style='display:none'>"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_TIMEOUT, 12); $result = curl_exec($ch); curl_close ($ch); echo"< /span>";