First of all... I really like the script! I am however having a small glitch that I do not know how to fix. I am creating a web site for a friend of mine and have added your guestbook script. It works great for posting, but if I try and delete one post, it erases all the posts and leaves me with the word "Array" in all the other posts (see: http://www.miramesa.com/SanDieguito/guestbook/gbook.php)
I read a similar sort of post below, and it said:
I suggest you DELETE the entire entries.txt file from the server and transfer the original (empty) one back. Make sure you transfer it in ASCII mode, and don't forget to set CHMOD 666.
I did that, and tried reposting and deleting and the same thing happened again.
Ok... I did everything you asked in your post and still got the same results. So, I now switched it back to "1", changed the password, sent a blank "entries.txt", and posted a new entry so you can test.
The $settings['add_to']=1; is located in your settings.php file, yours is probably set to $settings['add_to']=0; SO try setting that to 1 on the server that has problems.
I have no idea why it wouldn't work on one of your servers, but works ok on another. Sorry, can't help you here as I really don't know much about setting servers
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here
<?php
/* >>> SETUP YOUR GUESTBOOK <<< */
/* Detailed information found in the readme file */
/* What type of server is your website on?
1 = UNIX (Linux), 2 = Windows, 3 = Machintos */
$settings['system']=1;
/* Password for admin area */
$settings['apass']="admin";
/* Website title */
$settings['website_title']="My lovely website";
/* Website URL */
$settings['website_url']="http://www.domain.com/";
/* Guestbook title */
$settings['gbook_title']="My lovely website - guestbook";
/* Allow smileys? 1 = YES, 0 = NO */
$settings['smileys']=1;
/* Send you an e-mail when a new entry is added? 1 = YES, 0 = NO */
$settings['notify']=1;
/* Your e-mail. Only required if $settings['notify'] is set to 1 */
$settings['admin_email']="you@yourdomain.com";
/* URL of the gbook.php file. Only required if $settings['notify'] is set to 1 */
$settings['gbook_url']="http://www.domain.com/guestbook/gbook.php";
/* Filter bad words? 1 = YES, 0 = NO */
$settings['filter']=1;
/* Filter language. Please refer to readme for info on how to add more bad words
to the list! */
$settings['filter_lang']="en";
/* Prevent automated submissions (SPAM)? 1 = YES, 0 = NO */
$settings['autosubmit']=1;
/* >>> OPTIONAL SETTINGS <<< */
/* Name of the file where guestbook entries will be stored */
$settings['logfile']="entries.txt";
/* >>> DO NOT EDIT BELOW <<< */
$settings['verzija']="1.3.2";
?>
Sorry, I was looking at the wrong script settings.php, silly me
To be honest I don't really know what is wrong, but my guess is if it works ok on one of your servers then it must be the server fault if it doesn't work on the other one?
Sorry I can't be of more help here.
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here
That's ok! I appreciate your help and the cool script.
I will be moving it over to my friend's server which is different anyway... so hopefully it will work on there. If not, I will just use the server it works on!