PHP 5.3 CURL -- i am getting empty response from server( UBUNTU SERVER )

Posted by user333472 on Stack Overflow See other posts from Stack Overflow or by user333472
Published on 2010-06-12T11:33:06Z Indexed on 2010/06/12 11:43 UTC
Read the original article Hit count: 213

Filed under:
|

There is simple problem that when i am running "hello world" program for curl

<?php

   $curl = curl_init();
    curl_setopt ($curl, CURLOPT_URL, "http://www.php.net");
    curl_exec ($curl);
    curl_close ($curl);

?>

this code takes a min to run but returns empty , Please can any body tell me how to change setting or any thing so that this simple program run on a LINUX ( UBUNTU ) SERVER

© Stack Overflow or respective owner

Related posts about php

Related posts about curl