Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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: 84
Location: Swarthmore, PA
Trades: 0
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.
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
xanadu is offline
Reply With Quote
View Public Profile Visit xanadu's homepage!
 
 
Register now for full access!
Old 01-01-2008, 01:06 PM Re: Help! Six hours on a cURL issue!
rogem002's Avatar
PHP Chap

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

Whats the code your using to get the pagerank?
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.22172 seconds with 12 queries