Guestbook install was easy, but...

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
srhedd
Posts: 4
Joined: Thu May 20, 2010 7:36 pm

Guestbook install was easy, but...

Post 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!!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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...
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
srhedd
Posts: 4
Joined: Thu May 20, 2010 7:36 pm

Post 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!!!!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
srhedd
Posts: 4
Joined: Thu May 20, 2010 7:36 pm

Well...

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
srhedd
Posts: 4
Joined: Thu May 20, 2010 7:36 pm

Post 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!!
Post Reply