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.
&l
Search for allow-url-fopen in your PHP.ini.
allow-url-fopen
http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen