This thread will try to address some common problems with setting up the Guestbook on different server types and systems (IIS/Apache and NT/Unix). The way the files come in the download are for the most common way - but some servers insist on setting things up differently.
1) Are you certain that PHP is installed. To check this try the following.
Create a simple script called 'Info.php' you can use any text editor. Add the following code to that file.
Test this by uploading the file to your server and running it from the browser (type in the path/URL to it online). If that works and displays all relative info on the PHP that is installed on your server then that's not the problem.
If that doesn't work try this.
In some cases PHP can be run as a CGI module. This is similiar to using PHP like Perl. Some servers have it running it this way - I'm not sure why since it's not needed - but none the less they do. This will test if that's the case. Follow the same approach as in the first test but with the following in the 'Info.php' file.
<!-- phpinfor.php -->
If this works and the 1st one does not you'll need to include the line '#!/usr/local/bin/php' on the first line of all your scripts. Some servers may use a different path - check with your systems Administer if that's the case.
That doesn't work - Check to see if your server is using PHP version 3. (this is a very old version and most servers will not be using it). To test this rename the Info.php file to Info.php3 (with the 3 on the end of the file extension).
On unix you should be able to follow the instructions provided in the Tutorial - All you'll have to do is change the GuestBook.txt file to 666 or 777 - with 666 being more secure (using either Telnet, your FTP program, or other methods).
Changing Permsissions with Dream Weaver:
Try reviewing this thread:http://www.flash-db.com/Board/index.php?board=12;action=display;threadid=230Changing permissions on NT/Win2K Servers
Follow these instructions:
Changing permsissions On an IIS/NT/PWS server:http://www.flash-db.com/Board/index.php?board=12;action=display;threadid=325
1. In windows XP/2000 go in to the folder "GuestBook".
2. Inside the folder find the GuestBook.txt file.
3. Right click it and select "Security" tab.
4. Add internet guest account (if it's not already present) and put a check in
the "write" box.
5. That's it, you should be good to go!
Note: Your web site files (root) have to be on an NTFS partition for the permissions tab to be in the (right click) properties of the GuestBook.txt file! NTFS allows permissions to be set on all files where FAT 32 or 16 doesn't.
As a reference:http://www.flash-db.com/Board/index.php?board=12;action=display;threadid=325
Hopefully that address some of the common errors. Their will be others because as PHP can run on any Operating System and Any Server - Some systems Administrators set things up differently, and it's impossible to know what they where thinking, how they did it, and how they actually set things up.
In some cases it's best to send a message to your systems administrator or read over the documentation provided by your hosting service regarding these matters.