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: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.
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:24
Regular
"bing bang bong"
Posts: 3,040
YOU MUST HAVE HAD YOUR FOOT ON THE CABEL LOL!!!!!!!!!!!!11

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

The coolest ISP ever!
In my opinion, the ISP is the best I have ever used. They guarantee 'first time connection - everytime', which they have never let me down on.
My website looks tremendous!
Fantastic site, easy to follow, simple guides... impressed with whole package. My website looks tremendous. You don't need to be a rocket scientist to set this up, Freeola helps you step-by-step.
Susan

View More Reviews

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

Go to Support Centre
Feedback Close Feedback

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.