GetDotted Domains

Viewing Thread:
"Hmmm, this PHP should work..."

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.

Mon 14/04/03 at 14:38
Regular
Posts: 787
$filename="frontpage.data";
if(isset($updatetext))
{
$fp=fopen($filename, "w");
fwrite($fp, $updatetext);
}
?>

To update a variable called "frontpage.data". I've used exactly the same on another site, but it doesn't seem to be working for this one. This will create the variable too, right? That's what it did before.
Thu 17/04/03 at 09:21
Regular
"Pouch Ape"
Posts: 14,499
freeola-moderator wrote:
> THe Freeola servers do not support Frontpage extension. If the
> function you are trying to use within frontpage requires this then it
> will not work.

Errr..."frontpage.data" is the name of a variable that wouldn't update. Thought you'd know that, being the resident techie guy.

Anyway, I've sorted this now and pocketmonkey is back from the dead! I'm very dissappointed with the lack of and quality of customer service from FREEOLA though.
Wed 16/04/03 at 17:42
Regular
"Which one's pink?"
Posts: 12,152
Cool!
Freeola-moderator.
Ooh.
:-D
Wed 16/04/03 at 17:23
"www.Freeola.info"
Posts: 50
monkey_man wrote:
> > $filename="frontpage.data";
> if(isset($updatetext))
> {
> $fp=fopen($filename, "w");
> fwrite($fp, $updatetext);
> }
> ?>
>
> To update a variable called "frontpage.data". I've used
> exactly the same on another site, but it doesn't seem to be working
> for this one. This will create the variable too, right? That's what
> it did before.

THe Freeola servers do not support Frontpage extension. If the function you are trying to use within frontpage requires this then it will not work.
Wed 16/04/03 at 17:03
Regular
"It goes so quickly"
Posts: 4,083
Internet Explorer FTP used to let you alter the CHOMD settings, but for some reason I don't have that option anymore, which I found quite useful.

But like Rob said, all FTP clients have the feature to alter them, you'll need to make the file you want to edit writeable as well as readable.
Tue 15/04/03 at 19:32
Regular
"Eff, you see, kay?"
Posts: 14,156
You use the CHMOD/permissions functions of your FTP client.
Tue 15/04/03 at 12:35
Regular
"Pouch Ape"
Posts: 14,499
Hmmmm. I've emailed FREEOLA through the control panel thingy, but their track record doesn't exactly inspire me. COME ON FREEOLA - PROVE ME WRONG!!!

Aaaaanyway, how do I go about changing permissions? I never had to before. Maybe that'll sort out Pocketmonkey too!
Tue 15/04/03 at 00:15
Regular
"Eff, you see, kay?"
Posts: 14,156
Yeah that's a point actually, you need permissions.
Mon 14/04/03 at 15:55
Regular
"It goes so quickly"
Posts: 4,083
Try:

$filename="frontpage.data";
if(isset($updatetext)) {
$fp = fopen($filename, "w");
if (!$fp)
die("

Could not open file.

");
fwrite($fp, $updatetext);
close($fp);
}
?>

It'll let you know if the file couldn't be opened, which would be a good reason for it not working. The file won't be opened if it doesn't exist (i.e. you have used the wrong name) or you don't have the correct permissions set on it (i.e. you aren't authorised to open/write to it).

On Freeola Sites, you have to change the chmod's on the files you wish to write to, as by default they are only readable I believe.
Mon 14/04/03 at 15:23
Regular
"Pouch Ape"
Posts: 14,499
How do you mean?

ps, this is more or less exactly the same PHP you taught me ages ago, but it's stopped working all of a sudden.
Mon 14/04/03 at 15:17
Regular
"Eff, you see, kay?"
Posts: 14,156
I think you need to close $fp to write the data to the filesystem.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Continue this excellent work...
Brilliant! As usual the careful and intuitive production that Freeola puts into everything it sets out to do, I am delighted.
Many thanks!!
Registered my website with Freeola Sites on Tuesday. Now have full and comprehensive Google coverage for my site. Great stuff!!
John Shepherd

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.