simple comment script

This is a discussion on simple comment script within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello I am looking for very simple php script (no databases) to allow visitors to let comments. My aim is ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-05-2007
François Lagarde
 
Posts: n/a
Default simple comment script

Hello

I am looking for very simple php script (no databases) to allow visitors to let
comments. My aim is to link this part with my static pages webs.

Ideally I would like to call the script by:
http://mysite/doComment?id=pageToComment.html

any ideas?
--
F. Lagarde
Reply With Quote
  #2 (permalink)  
Old 03-05-2007
shimmyshack
 
Posts: n/a
Default Re: simple comment script

On 5 Mar, 13:53, firstname.n...@gmail.com (François Lagarde) wrote:
> Hello
>
> I am looking for very simple php script (no databases) to allow visitors to let
> comments. My aim is to link this part with my static pages webs.
>
> Ideally I would like to call the script by:http://mysite/doComment?id=pageToComment.html
>
> any ideas?
> --
> F. Lagarde


best place to look is somewhere like hotscripts, dont make it too
simple or it will be used to own your server

Reply With Quote
  #3 (permalink)  
Old 03-05-2007
macca
 
Posts: n/a
Default Re: simple comment script

Creating scripts where users can post comments can be done without the
use of a database.

In the old days (and still now) some websites use a common text file
to store the information to display instead of a database.


Using PHP you could create a .txt file and post the comment in you
form to s small script that would write the infomation to the file.

something like:-


$comment = $_POST['comment'];

$tp = fopen("prepared_comment_file.txt", "a");
fwrite($tp, $comment);
fwrite($tp, "\r\n");
fclose($tp);


This would write the comment to yout text file.

Then if you used some more PHP to display the contents of the text
file on the page you are sorted.


Good luck!


PM

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0