Page 1 of 1

Guestbook install was easy, but...

Posted: Thu May 20, 2010 7:39 pm
by srhedd
...I keep getting,


Fatal error: Call to undefined function: file_get_contents() in /home/sites/site15/web/gbook/gbook.php on line 1296

What's up?

I've double checked everything!

THANKS!!

Posted: Fri May 21, 2010 12:55 pm
by Klemen
Easy - you are running a VERY old (insecure, buggy) version of PHP on the server. By very old I mean several years old.

Ask your host to update PHP on their servers. Or what I would do - find a better host, because one that is running such old and insecure software on the server just calls for trouble...

Posted: Fri May 21, 2010 1:13 pm
by srhedd
YOU'RE RIGHT!!! (of course)

I asked my boss, and he says he's fought that with them for a while. They're running old EVERYTHING! Local host, little/no investment I guess. They may have another server to move us to, but in the meantime, what are the minimum requirements for PHP?

THANKS!!!!

Posted: Fri May 21, 2010 1:36 pm
by Klemen
GBook will work on any PHP version from 4.3.0 upwards (4.3.0 was released back in December 2002). But PHP 4.x isn't even supported anymore, you should upgrade to PHP 5 (currently 5.2.3 or 5.3):
http://www.php.net/downloads.php

Beware of hosts like that. All it takes to update PHP is half an hour of attention, no costs. If they haven't updated PHP in 8 years, who knows how old and insecure the entire server is.

Well...

Posted: Fri May 21, 2010 3:58 pm
by srhedd
I uploaded everything to a second site the company owns, now the guestbook loads properly, but when I enter the first guestbook message it says to CHMOD the entries file. No program I use allows me to do that, Dreamweaver, GoLive, FireFTP, FileZilla, all show me the permissions, and I can change them, but it won't upload, saying I don't have permission. I tried changing the entire folder offline then uploading it, it changes all files to rwx,rwx,rwx.

The error message is

500: FTP: a quote command returned error

Posted: Fri May 21, 2010 7:31 pm
by Klemen
Is it a Windows or Linux server? If it's Windows note that Windows don't support CHMOD commands, you will need to contact your host to set write permissions to file entries.txt, banned_ips.txt and apptmp folder.

Posted: Fri May 21, 2010 7:40 pm
by srhedd
Yeah, that was it. Damn Windows server. I migrated the site to a Linux and changed the permissions. Works fine now!

You've been a big help, THANKS!!