file_get_contents (): Hayır böyle bir konak bilinen hata

2 Cevap php

i dize için url almak için file_get_contents fonksiyonu kullanıyorum zaman ben aşağıdaki hatayı alıyorum. nasıl benim localhost bu çözebilir?

$ Içerik = file_get_contents ("http://google.com");

file_get_contents () [function.file-get-içindekiler]: php_network_getaddresses: başarısız Getaddrinfo: Hayır böyle bir konak bilinmektedir.

teşekkürler.

2 Cevap

Php.ini içinde allow_url_fopen açmak gerekir çünkü bir

Lütfen localhost ve kullanıcı adınızı kontrol edin.

Like if you are using Xampp, in the host column type Localhost and the database name and last but not least the username with root, and then install.

Oldukça kolay ama bunu eksik ise, çok üzücü gitti.