Shawn, I need some help

Discussion in 'Co-op Advertising Network' started by NewComputer, Feb 23, 2005.

  1. #1
    I am getting the following error at the bottom of one of my forums (http://www.newcomputer.ca/forums/index.php) :

    Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: No such host is known. in D:\websites\newcomputer.ca\forums\ad_network.php on line 40

    Warning: file_get_contents(http://ads.digitalpoint.com/network.php?b=www.newcomputer.ca&type=text&color=ffffff) [function.file-get-contents]: failed to open stream: No error in D:\websites\newcomputer.ca\forums\ad_network.php on line 40

    PS: Sometimes I do see the ads, other times I do not :|
     
    NewComputer, Feb 23, 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
    ads.digitalpoint.com seems to resolve fine for me when I check it.
     
    digitalpoint, Feb 23, 2005 IP
  3. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #3
    Are you saying that you see the ads on the bottom of my forum page just fine?

    I cannot validate:

    Ads not found on http://www.newcomputer.ca/forums/index.php/


    Account not not yet activated. | Site failed automatic validation as of 2005-02-23 (make sure URL and site type is correct - if everything is correct, make a request in the forum for assistance). Validate/Calculate Weight Now
     
    NewComputer, Feb 23, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    No, I mean my name server resolves ads.digitalpoint.com just fine... but yours does not.
     
    digitalpoint, Feb 23, 2005 IP
  5. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #5
    Ok, so any idea how to fix it? Anyone else?

    hmmm... I can't seem to chmod to 777
     
    NewComputer, Feb 23, 2005 IP
  6. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #6
    From my end, the name servers appear fine. I did however notice this when pasting the code into a browser:

    us82jsdd|400|900|4

    It appears above the ad. Not sure if this is an issue.
     
    NewComputer, Feb 23, 2005 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    The extra stuff is normal...

    Did you try resolving the IP address from the server?
     
    digitalpoint, Feb 23, 2005 IP
  8. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #8
    Yes,

    It worked fine. I am stumped...
     
    NewComputer, Feb 23, 2005 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    Where is your ad_network_ads.txt file?
     
    digitalpoint, Feb 23, 2005 IP
  10. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #10
    I am using the 176.txt and it is in my main forum directory. Not my root, but the forum directory.
     
    NewComputer, Feb 23, 2005 IP
  11. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #11
    Try running a simple PHP script of:

    <?php
    	echo gethostbyname('ads.digitalpoint.com');
    ?>
    PHP:
    It should output the numeric IP address if it works on your server. If it doesn't work then DNS resolution is not working on the server (at least not for PHP).
     
    digitalpoint, Feb 23, 2005 IP
  12. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #12
    Interesting....

    Parse error: syntax error, unexpected '<' in D:\websites\newcomputer.ca\forums\includes\page_tail.php on line 46


    Could this be the version of PHP on the server or configuration?
     
    NewComputer, Feb 23, 2005 IP
  13. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #13
    It should not go in your existing PHP files... make it as it's own file.
     
    digitalpoint, Feb 23, 2005 IP
  14. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #14
    Sorry for the problems Shawn. I basically just restarted from scratch, page by page. There must have been a coding issue. I have fixed it now (I believe). Sorry again...
     
    NewComputer, Feb 23, 2005 IP