Page 1 of 1

php_network_getaddresses: getaddrinfo failed

PostPosted: 04. April 2011 08:04
by Rad
im getting this error when try acces my site:
php_network_getaddresses: getaddrinfo failed: No such host is known.
Img:
Image
i use windows 7 with sql 2005 express sp3
xaamp version 1.7.1
no clue what it can be,searched in internet the error but nothin, all i got is this but dk how to use it and what it do exactly
http://czetsuya-tech.blogspot.com/2009/08/phpnetworkgetaddresses-getaddrinfo.html

thx in advance

Re: php_network_getaddresses: getaddrinfo failed

PostPosted: 04. April 2011 08:22
by Sharley
What version of XAMPP have you installed?

Re: php_network_getaddresses: getaddrinfo failed

PostPosted: 04. April 2011 08:32
by Rad
version 1.7.1

Re: php_network_getaddresses: getaddrinfo failed

PostPosted: 04. April 2011 08:39
by Sharley
What happens when you access http://localhost and then click on the demos in the left menu frame?

Trying to see if it is something wrong with the way you have setup your site database in phpMyAdmin.

Did you set your database Host to localhost or to Any Host % when you created it and your database user?

BTW the site IP in your screen cap is not accessible from the Internet.

Re: php_network_getaddresses: getaddrinfo failed

PostPosted: 04. April 2011 08:51
by Rad
Image


this the format when i use local.

the php my admin works fine. to be honest i dont know anything about php. this is coded by my friends i am just the hoster since they r not avaible i dunno what to do.

btw when i use different website which connects to my db i get the same problem.

if someone please please help me, and how to add the @ tag in apache to ignore the error??

i USE WINDOWS 7 WITH MS SQL 2005,XAMPP 1.7.1.

Re: php_network_getaddresses: getaddrinfo failed

PostPosted: 06. April 2011 06:21
by Rad
bump- anyome can help me plz?

Re: php_network_getaddresses: getaddrinfo failed

PostPosted: 06. April 2011 17:14
by WilliL
Rad wrote:if someone please please help me, and how to add the @ tag in apache to ignore the error??

have a look to error.log in c:/xampp/apache/logs (if standard configuration)
There you find hints to the script an line number where the error occures.

"$handle = @fopen($obj, "r");"

Re: php_network_getaddresses: getaddrinfo failed

PostPosted: 07. April 2011 12:13
by Rad
WilliL wrote:
Rad wrote:if someone please please help me, and how to add the @ tag in apache to ignore the error??

have a look to error.log in c:/xampp/apache/logs (if standard configuration)
There you find hints to the script an line number where the error occures.

"$handle = @fopen($obj, "r");"


can u help me personally. seriously my website doesnot connect to teh database properly. i dont know y.. :(