Hello. No matter what I try, I have looked everywhere online, I cannot get curl to work on my server. Here is a test page: 64.120.148.102/~leechdl/a.php does anyone know what to do? I uncommented ; from cpanel where php_curl.ddl is. I also recompiled php with curl enabled. I did some much stuff,still not working!!
So if you try the following which is more or less from http://uk3.php.net/manual/en/function.curl-init.php what do you get? <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://atlantichosting.net/"); curl_setopt($ch, CURLOPT_HEADER, 0); echo "This is the output from curl<br /><br /><br />\n"; curl_exec($ch); curl_close($ch); ?> Code (markup):
The problem was that cpanel was installed on the server. I tried everything to get it installed outside cpanel, then i figured out you can install in in WHM.