I'm trying to get the content of an external file (youtube json feed) I first tried using file_get_contents() and curl. None of them are giving me any response.
In php.ini allow_url_fopen is set to On. And I also tried turning off safe mode.
error_reporting('E_ALL'); ini_set('display_errors',1); echo file_get_contents('http://gdata.youtube.com/feeds/api/playlists/760E7F6C9B5CD71E?v=2&alt=json'); What can be going wrong?
error_reporting(E_ALL), also did you check your server log, perhaps you have some kind of restriction. Just lookup your config to see everything installed with<?php phpinfo();?>Server > IP Addresses > Firewallor similar, if your stuck open a ticket to your host and get them to fix it.