The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
if ($REMOTE_ADDR != "127.0.0.1") {
$tfile = "http://www.anothersite.co.uk/text/".$fname.".txt";
} else {
$tfile = "http://127.0.0.1/test/".$fname.".txt";
}
$res = @fopen($tfile,"r");
if ($res) {
while ($txt = fgets($res,1000)) {
echo "$txt";
}
fclose ($res);
}
?>
What's happening is that someone else prepares text for our site, and loads it to their own webspace, then this script goes and opens it as a file and echoes it to the page. The bit about the remote address is so I can test the site on this PC without having to be online.
Anyway, its now stopped returning any text at all, but I know the remote file has data in it. It must be that the "fopen" is failing, but why would that stop working suddenly? I wonder if Freeola are tightening up their security after the hacks of last week? If so, it would be polite if they were to mention it. Anyone else doing remote includes, or remote file opens?
Btw - I've had no response to my support request form about losing my site the weekend before last.
if ($REMOTE_ADDR != "127.0.0.1") {
$tfile = "http://www.anothersite.co.uk/text/".$fname.".txt";
} else {
$tfile = "http://127.0.0.1/test/".$fname.".txt";
}
$res = @fopen($tfile,"r");
if ($res) {
while ($txt = fgets($res,1000)) {
echo "$txt";
}
fclose ($res);
}
?>
What's happening is that someone else prepares text for our site, and loads it to their own webspace, then this script goes and opens it as a file and echoes it to the page. The bit about the remote address is so I can test the site on this PC without having to be online.
Anyway, its now stopped returning any text at all, but I know the remote file has data in it. It must be that the "fopen" is failing, but why would that stop working suddenly? I wonder if Freeola are tightening up their security after the hacks of last week? If so, it would be polite if they were to mention it. Anyone else doing remote includes, or remote file opens?
Btw - I've had no response to my support request form about losing my site the weekend before last.