PHP 5.4 - file_get_contents not working when requesting urls on same server
Clash Royale CLAN TAG #URR8PPP PHP 5.4 - file_get_contents not working when requesting urls on same server I'm unable to get content from same server domain for example the following returns empty: file_get_contents('http://www.myexamplesite.com') If I have file_get_contents('http://google.com') or any other external url it seems to work fine. file_get_contents('http://google.com') php.ini has allow_url_fopen = on allow_url_fopen = on Already looked at the following post file_get_contents() not working to same server but OP hasn't provided a solution. Any ideas - I'm suspecting it's an ip resolution problem? Perhaps try cURL? – Utkanos 23 mins ago @Utkanos tried curl and that doesn't work for url's on same server...