It works perfectly on localhost with Xampp, but when I try it on my server (host-ed.net), fopen can't open any url, it only works for files without http.
<?php
$file="http://www.google.es";
$gestor = fopen($file, "r") or die ("Nothing");
?>
In my server with this code shows Nothing. Can be anything on the php.ini ?
EDIT: In the php.ini: allow_url_fopen = On
EDIT: It's solved. My server had it disabled, but now it's enabled. Thanks for the answers.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…