Co-op timing out and wrecking my sites.

Discussion in 'Co-op Advertising Network' started by Angus, May 17, 2005.

  1. #1
    I updated to the newest co-op code last night and have been getting heaps of site failures. Basically looks like co-op is timing out ?

    Any way to fix so co-op doesnt kill my site when it dies, or is this something I have wrong at my end ?

    Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/httpd/vhosts/domainname.com/httpdocs/ad_network.php on line 9
    
    Warning: fsockopen(): unable to connect to ads.digitalpoint.com:80 in /home/httpd/vhosts/domainname.com/httpdocs/ad_network.php on line 9
    
    Warning: fwrite(): supplied argument is not a valid stream resource in /home/httpd/vhosts/domainname.com/httpdocs/ad_network.php on line 10
    
    Warning: feof(): supplied argument is not a valid stream resource in /home/httpd/vhosts/domainname.com/httpdocs/ad_network.php on line 11
    
    Warning: fread(): supplied argument is not a valid stream resource in /home/httpd/vhosts/domainname.com/httpdocs/ad_network.php on line 12
    Code (markup):
     
    Angus, May 17, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Not sure why, but looks like your server isn't able to resolve the IP address of the ad network server.
     
    digitalpoint, May 17, 2005 IP
  3. Angus

    Angus Well-Known Member

    Messages:
    49
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    113
    #3
    Angus, May 18, 2005 IP
  4. jurgen

    jurgen Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Looks like the code has no checks if handle was successfully created by fsockopen function. Look at www.php.net/manual/en/function.fsockopen.php for a good example.
     
    jurgen, May 18, 2005 IP