Hy,
i have a problem with PHP 5.1.6
I have a script containing something like this:
$f=fsockopen("www.site01.com",80,$errNo,$errStr);
var_dump($f);
When accessing this from apache, i get this error:
php_network_getaddresses: getaddrinfo failed.
When running the same scipt from the CLI (php ./dns.php), i get no
error, and i`m able to connect (and read/write) to www.site01.com
I have another script containing something like this:
$f=fsockopen("www.site02.com",80,$errNo,$errStr);
var_dump($f);
This site is available both from apache, and from CLI.
( so i`m able to connect only to certain websites)
This problem appeared about 1 month ago when the dns servers failed to
work, and they were changed(in /etc/resolv.conf). Before this was
done, everything worked fine. The thing i do not understand is why
only certain sites are available from php, but no restrictions apply
when in CLI.
Anybody else had this problem? 5 20961
On Tue, 04 Dec 2007 14:30:37 +0100, _q_u_a_m_i_s's <qu****@gmail.com
wrote:
Hy,
i have a problem with PHP 5.1.6
I have a script containing something like this:
$f=fsockopen("www.site01.com",80,$errNo,$errStr);
var_dump($f);
When accessing this from apache, i get this error:
php_network_getaddresses: getaddrinfo failed.
When running the same scipt from the CLI (php ./dns.php), i get no
error, and i`m able to connect (and read/write) to www.site01.com
I have another script containing something like this:
$f=fsockopen("www.site02.com",80,$errNo,$errStr);
var_dump($f);
This site is available both from apache, and from CLI.
( so i`m able to connect only to certain websites)
This problem appeared about 1 month ago when the dns servers failed to
work, and they were changed(in /etc/resolv.conf). Before this was
done, everything worked fine. The thing i do not understand is why
only certain sites are available from php, but no restrictions apply
when in CLI.
According to some old bugreports, on a DNS servers change (or new DHCP
lease?), the 'running' PHP module doesn't get the new DNS server address,
or at least bugs, while the CLI does get the change. What happens when you
restart apache/the webserver?
--
Rik Wasmus
On Dec 4, 3:41 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Tue, 04 Dec 2007 14:30:37 +0100, _q_u_a_m_i_s's <qua...@gmail.com>
wrote:
Hy,
i have a problem with PHP 5.1.6
I have a script containing something like this:
$f=fsockopen("www.site01.com",80,$errNo,$errStr);
var_dump($f);
When accessing this from apache, i get this error:
php_network_getaddresses: getaddrinfo failed.
When running the same scipt from the CLI (php ./dns.php), i get no
error, and i`m able to connect (and read/write) towww.site01.com
I have another script containing something like this:
$f=fsockopen("www.site02.com",80,$errNo,$errStr);
var_dump($f);
This site is available both from apache, and from CLI.
( so i`m able to connect only to certain websites)
This problem appeared about 1 month ago when the dns servers failed to
work, and they were changed(in /etc/resolv.conf). Before this was
done, everything worked fine. The thing i do not understand is why
only certain sites are available from php, but no restrictions apply
when in CLI.
According to some old bugreports, on a DNS servers change (or new DHCP
lease?), the 'running' PHP module doesn't get the new DNS server address,
or at least bugs, while the CLI does get the change. What happens when you
restart apache/the webserver?
--
Rik Wasmus
The apache server was restarted many times...still nothing.
_q_u_a_m_i_s's wrote:
On Dec 4, 3:41 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
>On Tue, 04 Dec 2007 14:30:37 +0100, _q_u_a_m_i_s's <qua...@gmail.com> wrote:
>>Hy, i have a problem with PHP 5.1.6 I have a script containing something like this: $f=fsockopen("www.site01.com",80,$errNo,$errStr); var_dump($f); When accessing this from apache, i get this error: php_network_getaddresses: getaddrinfo failed. When running the same scipt from the CLI (php ./dns.php), i get no error, and i`m able to connect (and read/write) towww.site01.com I have another script containing something like this: $f=fsockopen("www.site02.com",80,$errNo,$errStr); var_dump($f); This site is available both from apache, and from CLI. ( so i`m able to connect only to certain websites) This problem appeared about 1 month ago when the dns servers failed to work, and they were changed(in /etc/resolv.conf). Before this was done, everything worked fine. The thing i do not understand is why only certain sites are available from php, but no restrictions apply when in CLI.
According to some old bugreports, on a DNS servers change (or new DHCP lease?), the 'running' PHP module doesn't get the new DNS server address, or at least bugs, while the CLI does get the change. What happens when you restart apache/the webserver? -- Rik Wasmus
The apache server was restarted many times...still nothing.
Was it completely stopped and started, or just restarted? The latter
only reloads the configuration, IIRC.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
On Dec 4, 4:02 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
_q_u_a_m_i_s's wrote:
On Dec 4, 3:41 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Tue, 04 Dec 2007 14:30:37 +0100, _q_u_a_m_i_s's <qua...@gmail.com>
wrote:
>Hy, i have a problem with PHP 5.1.6 I have a script containing something like this: $f=fsockopen("www.site01.com",80,$errNo,$errStr); var_dump($f); When accessing this from apache, i get this error: php_network_getaddresses: getaddrinfo failed. When running the same scipt from the CLI (php ./dns.php), i get no error, and i`m able to connect (and read/write) towww.site01.com I have another script containing something like this: $f=fsockopen("www.site02.com",80,$errNo,$errStr); var_dump($f); This site is available both from apache, and from CLI. ( so i`m able to connect only to certain websites) This problem appeared about 1 month ago when the dns servers failed to work, and they were changed(in /etc/resolv.conf). Before this was done, everything worked fine. The thing i do not understand is why only certain sites are available from php, but no restrictions apply when in CLI.
According to some old bugreports, on a DNS servers change (or new DHCP
lease?), the 'running' PHP module doesn't get the new DNS server address,
or at least bugs, while the CLI does get the change. What happens when you
restart apache/the webserver?
--
Rik Wasmus
The apache server was restarted many times...still nothing.
Was it completely stopped and started, or just restarted? The latter
only reloads the configuration, IIRC.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
That fixed it:)
I restarted the whole server...after stopping apache it refused to
open again, so i restarted the server and it worked.
Thanx
On Dec 4, 9:54 am, "_q_u_a_m_i_s's" <qua...@gmail.comwrote:
On Dec 4, 4:02 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
_q_u_a_m_i_s's wrote:
On Dec 4, 3:41 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
>On Tue, 04 Dec 2007 14:30:37 +0100, _q_u_a_m_i_s's <qua...@gmail.com>
>wrote:
>>Hy,
>>i have a problem with PHP 5.1.6
>>I have a script containing something like this:
>> $f=fsockopen("www.site01.com",80,$errNo,$errStr);
>> var_dump($f);
>>When accessing this from apache, i get this error:
>>php_network_getaddresses: getaddrinfo failed.
>>When running the same scipt from the CLI (php ./dns.php), i get no
>>error, and i`m able to connect (and read/write) towww.site01.com
>>I have another script containing something like this:
>> $f=fsockopen("www.site02.com",80,$errNo,$errStr);
>> var_dump($f);
>>This site is available both from apache, and from CLI.
>>( so i`m able to connect only to certain websites)
>>This problem appeared about 1 month ago when the dns servers failed to
>>work, and they were changed(in /etc/resolv.conf). Before this was
>>done, everything worked fine. The thing i do not understand is why
>>only certain sites are available from php, but no restrictions apply
>>when in CLI.
>According to some old bugreports, on a DNS servers change (or new DHCP
>lease?), the 'running' PHP module doesn't get the new DNS server address,
>or at least bugs, while the CLI does get the change. What happens when you
>restart apache/the webserver?
>--
>Rik Wasmus
The apache server was restarted many times...still nothing.
Was it completely stopped and started, or just restarted? The latter
only reloads the configuration, IIRC.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
That fixed it:)
I restarted the whole server...after stopping apache it refused to
open again, so i restarted the server and it worked.
Thanx
Could it be an extension to php. some setups have multiple php.ini
files (for apache, cli, etc...) Try hunting around. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steve |
last post by:
Visitors to my site have been getting a random error. It's been
happening more and more frequently lately.
______________________________
Warning: Unknown(): php_network_getaddresses: getaddrinfo...
|
by: Matt |
last post by:
I'm trying to get the HTML data off of a webpage. Let's say for the
sake of argument it's the python homepage. I've googled around and
found some examples that people said worked. Here's what...
|
by: StevePBurgess |
last post by:
Hi - I am using this url_exists function: to check whether files exist
on other peoples webservers (before allowing my users to add the site
to their directory of rss feeds). On my current shared...
|
by: edcdave |
last post by:
I'm trying to get MoinMoin 1.5.4 running with Python 2.3.4 (installed
from an SCO Skunkworks binary). Python 2.3.4 (#1, Aug 27 2004,
18:22:39) on sco_sv3
One of the MoinMoin modules attempts to...
|
by: Henry16 |
last post by:
Never seen such a situation !
Do you have once faced this problem ?
We use a fsockopen to retrieve a content from a URL . The content is dispalid corretly on a page
on one of our servers.
But...
|
by: cole007 |
last post by:
Hi all,
New to this forum so thought would start off with a query that has been causing me some problems. Trying to work with remote images using gd libraries and get the following message:...
|
by: John Nagle |
last post by:
Here's a strange little bug. "socket.getaddrinfo" blows up
if given a bad domain name containing ".." in Unicode. The
same string in ASCII produces the correct "gaierror" exception.
Actually,...
|
by: sandipbhoi |
last post by:
Hello all,
I have implemented a integration of payment gateway with paypal. Currently my site is hosted at a shared server. The site under test was working properly till there was no change on...
|
by: jinsue |
last post by:
Hi all,
I am having trouble getting a client/server relationship to connect; receiving the above error.
Python 2.6.5, Win7
On one end we have the socket being bound and that is all working with...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |