19
¿Cómo puedo manejar la advertencia de la función file_get_contents () en PHP?
Escribí un código PHP como este $site="http://www.google.com"; $content = file_get_content($site); echo $content; Pero cuando elimino "http: //" $siterecibo la siguiente advertencia: Advertencia: file_get_contents (www.google.com) [function.file-get-contents]: no se pudo abrir la transmisión: Lo intenté tryy catchno funcionó.