Tags: | php | MySQL | comments |
2007-04-20 01:55
PHP Comment Program for Download
I recently finished writing the comments code for my site, and I am quite happy with my results (even if I don't yet have enough traffic to have any commentators). It's clear that if I needed a commenting program on my site a few weeks ago, others may have the same need - and I have decided to package my PHP comment code for anyone who wants to use it. If you happen to need a simple and clean PHP comment posting system for your site, please feel free to download the one implemented below, from here. If you don't need a commenting system, but would like to critique my code, I welcome any feedback - this is one of the very first programs I've written in PHP, but it thankfully wasn't too incredibly difficult or complex. What you'll need in order to properly setup this program is a web server with PHP, and a MySQL database. The comments are saved to a MySQL database, and retrieved based on the filename of the retrieving file, allowing multiple pages to use the same database table. I built in a spam-reducing "confirmation" word functionality that will hopefully help somewhat in preventing comment spammers from getting to your site. All HTML tags are stripped from posted comments, which should be more secure, and keeps everything simpler. All fields have a reasonable max length, and there is a max word length. Commentators have the option to include their email address and their website - their name is linked to their email, unless they include a website address, which is then linked instead. I've included a README file in the release with instructions for installation. If anyone has any questions or problems feel free to email me or comment here and I can try my best to give you the help and answers you may need. Download Here
- Kevin
Kevin (at) Upcsite (dot) Net
If you enjoyed this post, Please consider subscribing to my full-post feed, or subscribing to receive my posts by email. Have anything to say? I love feedback on my posts, so feel free to leave a comment below.
Related Entries:
- Database Driven Content and School (2007-04-18)
- PHP is Fun (2007-04-15)
- A New Project: PHP Commenting (2007-04-12)
- Tech Blog Comments (2007-05-14)
Comments:
Nice. I'll check it out!
Posted by: Derrick | 2007-04-20 13:19:46
Post A Comment:
