title: fopen is not working on my server
body: <p>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.</p>
  
  <pre><code>&lt;?php
  $file="http://www.google.es";
  $gestor = fopen($file, "r") or die ("Nothing");
  ?&gt;
  </code></pre>
  
  <p>In my server with this code shows Nothing. Can be anything on the php.ini ?</p>
  
  <p>EDIT: In the php.ini: allow_url_fopen = On</p>
  
  <p>EDIT: It's solved. My server had it disabled, but now it's enabled. Thanks for the answers.</p>