Jump to content

[Solved] File_Get_Contents() >:(


wolstech

Recommended Posts

So, something seems to have changed recently. Stevie randomly refuses to file_get_contents() its own files through HTTP. It returns an empty string.

<?php

$content = file_get_contents("http://si3.raxsoft.com/changelog.txt");
echo $content;

?>

Code above can be run here: http://si3.raxsoft.com/debug_fgc.php It returns a blank page for me. However, when run on my local server, it retrieves and shows the changelog.txt just fine.

 

It used to work since a bunch of stuff on my account has been doing it for years...Any ideas on this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...