Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

problem with Squid

Discussion in 'General Discussion' started by nick1, May 4, 2008.

  1. nick1

    nick1 Member

    Joined:
    May 21, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    151
    Hello,

    I had installed Proxy software (Squid) today and I've problem now.

    When I'm using different IP to see how it works but It's only show the primary IP, I'm using curl.

    The code I'm using are:

    Code:
     $ch = curl_init();
    curl_setopt($ch, CURLOPT_PROXY, "xxx.xxx.xxx.xxx:8080");
    curl_setopt($ch, CURLOPT_URL,"http://myip.dk");
    curl_setopt($ch, CURLOPT_REFERER, "");
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    $html = curl_exec($ch);
    
    curl_close ($ch);
    
    print $html;
    
    Any idea, how can squid read all my server IPs.

    Thanks
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice