GetDotted Domains

Viewing Thread:
"Can't open remote file any more in PHP"

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.

Thu 17/07/03 at 00:15
Regular
Posts: 787
Until yesterday, this script of mine was working fine ...

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.
Thu 17/07/03 at 00:24
Regular
"bing bang bong"
Posts: 3,040
YOU MUST HAVE HAD YOUR FOOT ON THE CABEL LOL!!!!!!!!!!!!11
Thu 17/07/03 at 00:17
Regular
"whoneedsatagline?"
Posts: 194
***** Forget it - its now decided to start working again! *****
Thu 17/07/03 at 00:15
Regular
"whoneedsatagline?"
Posts: 194
Until yesterday, this script of mine was working fine ...

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.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

First Class!
I feel that your service on this occasion was absolutely first class - a model of excellence. After this, I hope to stay with Freeola for a long time!
I've been with Freeola for 14 years...
I've been with Freeola for 14 years now, and in that time you have proven time and time again to be a top-ranking internet service provider and unbeatable hosting service. Thank you.
Anthony

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.