La fonction file_get_contents(http://www.site-distant.com) fonctionne parfaitement quand je démarre Apache en application.
j'ai les messages suivants quand Apache est démarré comme service windows
Code : Tout sélectionner
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed:
Hôte inconnu. in D:\Program Files\EasyPHP 2.0b1\www\monPGM.php on line 4
Warning: file_get_contents(http://www.site-distant.com) [function.file-get-contents]: failed to open stream:
No error in D:\Program Files\EasyPHP 2.0b1\www\monPGM.php on line 4Merci