I have installed XAMPP on my Linux server (Fedora 11) and some of the specific PHP functions are not working like file() and curl lib. When I try to use these functions it gives me an error like
- Code: Select all
file() [function.file]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in ….
On my php.ini allow_url_fopen set to on
Host file and networking is ok on server, if we try to ping any domain (e.g. http://www.google.com) from shell/command seems working fine. However PHP is not able to access same domain.