It works fine on localhost with Xampp, but when I try it on my server (host-ed.net), fopen cannot open any URL, it only works for files without http.
<?php $file="http://www.google.es"; $gestor = fopen($file, "r") or die ("Nothing"); ?>
On my server with this code Nothing is displayed. Maybe something on php.ini?
EDIT: In php.ini: allow_url_fopen = On
EDITOR: He decided. My server turned it off, but now it is turned on. Thanks for answers.
source share