LLLLLLL Posted November 29, 2011 Share Posted November 29, 2011 I have release notes on my server, at example.com/release.txt. My software points to this file so people can see the notes: file_get_contents( http://example.com/release.txt ); Why -- since all sites are on the internet -- can most of my customers see the file but some cannot? Just seems odd to me. Could some servers be turning that off or something? Doesn't seem like a problem on my server. Quote Link to comment https://forums.phpfreaks.com/topic/252008-file_get_contents-fails-from-some-servers/ Share on other sites More sharing options...
trq Posted November 29, 2011 Share Posted November 29, 2011 Allot of cheap/crap hosts will disable the ability to use functions such as file_get_contents() via a url. Quote Link to comment https://forums.phpfreaks.com/topic/252008-file_get_contents-fails-from-some-servers/#findComment-1292111 Share on other sites More sharing options...
LLLLLLL Posted November 29, 2011 Author Share Posted November 29, 2011 Seems about right. I hate it when people don't use HostGator. Quote Link to comment https://forums.phpfreaks.com/topic/252008-file_get_contents-fails-from-some-servers/#findComment-1292122 Share on other sites More sharing options...
trq Posted November 29, 2011 Share Posted November 29, 2011 Or decent hosting. Quote Link to comment https://forums.phpfreaks.com/topic/252008-file_get_contents-fails-from-some-servers/#findComment-1292123 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.