开发者

Simple Website Comments Section [closed]

开发者 https://www.devze.com 2023-03-27 07:05 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

开发者_开发问答

Closed 5 years ago.

Improve this question

I have a very simple website, and would like to create a 'Comments' section to it. Currently I have a HTML document and a CSS document running the site.

I have a little knowledge of PHP, and would like to keep this as simple as possible - i.e: saving comments to a text file perhaps? But not sure.

Can someone please suggest the simplest way of adding the comments options in.

Thanks for any help.


You can use Facebook Connect to add comments to an existing page: http://developers.facebook.com/blog/post/472 (Updated Link)

I found that post by searching google for "add facebook comments to your site"


It requires a MySQL database (which, if you're developing with PHP, is something that's better to get a cursory knowledge of sooner rather than later), but Commentator is a pretty nice, simple comment script. See: http://ratherodd.com/commentator/


You actually can do this very easily using file_get_contents() and file_put_contents(). Using only a flat text file and no database.

I set up an example page at: http://staticchaos.freeoda.com/php/

0

精彩评论

暂无评论...
验证码 换一张
取 消