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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |