Reply to Re: simple comment script

Your name:

Reply:


Posted by macca on 03/05/07 21:50

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация