![]() |
Guest Book - No Database
I found this at hotscripts and it was about 10 files and a whole lotta includes and requires so I thoug I would bring it down to 3 files, 2 which you don't even see.
create a file on you directory named data.php and save it with NO CODING inside it. create index.php and this code: PHP Code:
insert.php PHP Code:
|
This is a great script. :) Is there anyone who could take the time and make it spamproof? So you had to include a word in the comment, that is not used by spammers? If the word is included in the comment, the comment will get posted and if not, it will be left out of course. And if the word is in the comment, it will get hidden...
|
Also, I get this error the first time I try to post:
Warning: fread(): Length parameter must be greater than 0. in c:\programmer\easyphp1-8\www\insert.php on line 33 Warning: Cannot modify header information - headers already sent by (output started at c:\programmer\easyphp1-8\www\insert.php:33) in c:\programmer\easyphp1-8\www\insert.php on line 43 Then reload and suddenly there's two comments of the same. :confused: |
That's server problem, can't help you. I could make it spam proof, like a cookie for every 5 minutes you comment.
|
Often what I find is a in a comments page people will strip_tags on a variable then send it straight to the database. This means that if a guy puts a link (<a href="#">naughty angels</a> you will still have that entry stored in the database. Here is a small php snippet to stop that from happening.
PHP Code:
|
lol a guestbook only needs one file...
Just seems beond basic to me since I am developing a forums :P |
what? why? how?
this thread was made in april what was the point in bringing it back to life? |
im using that at my site thanks so much
|
I noticed that at the bottom you made a reference to header index.php.
I am wanting to add the guest book to all my article pages I want the comments and form and article all to be on one page. Is this possible? thanks |
I have a problem here. I wonder if anyone can solve it? When i run the script on localhost, saving all files as a php extension where data.php has no codings and the rest of the files has it into a directory called example.php (directory as in a folder and folder.php :O) When i type Nickname as ASD and posted ASD text, there isn't any content displayed other than the time and posted by seems empty too! As well, i opened the data.php file, not a folder. I used Dreamweaver to save it as a php file and it seems to be able to display nothing except the time, etc!
|
| All times are GMT +1. The time now is 05:12 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.