Re: [PHP] php_network_getaddresses()
Include will evaluate the file as PHP code, that most likely is not what you want it to do. Take a look at file_get_contents(), manual page available at http://www.php.net/manual/en/function.file-get-contents. Jason phpSun, 2003-01-12 at 19:36, Stanislav Skrypnik wrote: Hi all, I have the problem with this peace of code. This code has to include file containing some Javascript functions. ? //my_file.php define (PATH, http://mysite/;); $javascript=PATH.inc/javascript_functions.js; include ($javascript); ? When I run this I got message: Warning: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /physical/location/inc/my_file.php on line 5 Warning: Failed opening 'http://mysite/inc/javascript_functions.js' for inclusion (include_path='.:/php/includes:/usr/share/php') in /physical/location/inc/my_file.php on line 5 I was trying to find info about php_network_getaddresses() but no luck. Any help would be very appreciated. Stas. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php_network_getaddresses
Try just pinging www.nancies.org from the command line. $ ping nancies.org PING nancies.org (207.8.144.57): 56 data bytes 64 bytes from 207.8.144.57: icmp_seq=0 ttl=64 time=0.047 ms 64 bytes from 207.8.144.57: icmp_seq=1 ttl=64 time=0.043 ms 64 bytes from 207.8.144.57: icmp_seq=2 ttl=64 time=0.036 ms 64 bytes from 207.8.144.57: icmp_seq=3 ttl=64 time=0.037 ms 64 bytes from 207.8.144.57: icmp_seq=4 ttl=64 time=0.047 ms nancies is local, so I'm not suprised that the pings came back ok. We did put up a firewall about a week ago that blocks pings from the outside though. Since everything is local though, I'm not sure why we would have this problem. Sabre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php_network_getaddresses
nancies is local, so I'm not suprised that the pings came back ok. We did put up a firewall about a week ago that blocks pings from the outside though. Since everything is local though, I'm not sure why we would have this problem. I have this problem too, i mean, the same warning and bad location error. But its not always, i get it from time to time on my website (www.pagongski.com) and i cant figure out what it is. I have a random banner, a random quote and some fopen's for a shoutbox and news heading fetcher. Even changed all the vars hoping it would fix it. One thing i noticed is that the error is less frequent on IE6 at home than it is at work. At home i acess the net by adsl and at the office we use isdn but by router/lan. Something to do with that? Dont know the reason for such errors. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php_network_getaddresses
On Sat, 4 May 2002, Julian wrote: Try just pinging www.nancies.org from the command line. $ ping nancies.org PING nancies.org (207.8.144.57): 56 data bytes 64 bytes from 207.8.144.57: icmp_seq=0 ttl=64 time=0.047 ms 64 bytes from 207.8.144.57: icmp_seq=1 ttl=64 time=0.043 ms 64 bytes from 207.8.144.57: icmp_seq=2 ttl=64 time=0.036 ms 64 bytes from 207.8.144.57: icmp_seq=3 ttl=64 time=0.037 ms 64 bytes from 207.8.144.57: icmp_seq=4 ttl=64 time=0.047 ms nancies is local, so I'm not suprised that the pings came back ok. We did put up a firewall about a week ago that blocks pings from the outside though. Since everything is local though, I'm not sure why we would have this problem. I'm not trying to be difficult, but you know that www.nancies.org is a different resource from nancies.org, right? For instance, we do split-horizon DNS and there are occasional glitches where addresses pointing to local hosts make it into the public DNS but not the local DNS. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php_network_getaddresses
$ ping nancies.org PING nancies.org (207.8.144.57): 56 data bytes 64 bytes from 207.8.144.57: icmp_seq=0 ttl=64 time=0.047 ms 64 bytes from 207.8.144.57: icmp_seq=1 ttl=64 time=0.043 ms 64 bytes from 207.8.144.57: icmp_seq=2 ttl=64 time=0.036 ms 64 bytes from 207.8.144.57: icmp_seq=3 ttl=64 time=0.037 ms 64 bytes from 207.8.144.57: icmp_seq=4 ttl=64 time=0.047 ms nancies is local, so I'm not suprised that the pings came back ok. We did put up a firewall about a week ago that blocks pings from the outside though. Since everything is local though, I'm not sure why we would have this problem. I'm not trying to be difficult, but you know that www.nancies.org is a different resource from nancies.org, right? For instance, we do Not at all, I'd rather have you point something out that I might have missed :) www.nancies.org is an alias for nancies.org. Both point towards the same IP address. Just to check, I did a ping on it as well though with the same results as above. Any other ideas? Sabre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php_network_getaddresses
nslookup is not a good exclusive tool for testing local resolver problems, because it may do its own resolution. Try just pinging www.nancies.org from the command line. miguel On Fri, 3 May 2002, Julian wrote: Hey All, I get the following error: Warning: php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /usr/home/roshi/htdocs/includes/rightcont_nanciesorg.inc.php on line 57 Warning: fopen(http://www.nancies.org/news/rss/,r;) - Bad file descriptor in /usr/home/roshi/htdocs/includes/rightcont_nanciesorg.inc.php on line 57 Error reading RSS data. I know I can resolve b/c from the local machine I can: $nslookup www.nancies.org Server: ns1.netaxs.com Address: 207.106.1.2 Non-authoritative answer: Name:nancies.org Address: 207.8.144.57 Aliases: www.nancies.org Does PHP look on a different port than 53 for host name lookups? TIA, Sabre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php