I will try to be as detailed as I can, so please read thoroughly.
I am currently trying to implement a Google PageRank checker using a couple of tools available online. These required the use of file_get_contents, so, after looking at the GoDaddy help site, I replaced it with the appropriate cURL call (since they don't support file_get_contents and they also use a proxy server):
Code:
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLE_OPERATION_TIMEOUTED, 120);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
return curl_exec($ch);
As you can see, I tried to accomodate every applicable and relevant option, but to no avail. You can see at
http://www.rioleo.org/pagerank/ that whenever you enter any website, the Google PageRank number remains at '0'.
Is there any way you may be able to assist me to this regard? I've spent a good six hours on this and would like some concrete help. Thank you!