19
Come posso gestire l'avviso della funzione file_get_contents () in PHP?
Ho scritto un codice PHP come questo $site="http://www.google.com"; $content = file_get_content($site); echo $content; Ma quando rimuovo "http: //" da $site ottengo il seguente avviso: Avviso: file_get_contents (www.google.com) [function.file-get-contents]: impossibile aprire lo stream: Ci ho provato trye catchnon ha funzionato.