Reply
Help! Six hours on a cURL issue!
Old 01-01-2008, 02:56 AM Help! Six hours on a cURL issue!
xanadu's Avatar
Skilled Talker

Posts: 83
Location: Swarthmore, PA
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!
__________________
Time to Kill. Games to Play. arcadekill.com
xanadu is offline
Reply With Quote
View Public Profile Visit xanadu's homepage!
 
When You Register, These Ads Go Away!
Old 01-01-2008, 01:06 PM Re: Help! Six hours on a cURL issue!
rogem002's Avatar
Webmaster Talker

Posts: 607
Name: Mike
Location: United Kingdom
You ever thought of just changing host? Testing that site it seems slow.

Whats the code your using to get the pagerank?
__________________
Website Services
PHP Code:
if(Added_Talkupation($post) == TRUE){iHug($you);} 
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Reply     « Reply to Help! Six hours on a cURL issue!
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11223 seconds with 12 queries