Unless these are massive files I would say just store them in the MySQL 
database as a text field.  Don't worry about your markup DBI's quote 
method will take care of all of that nastiness.  If you are set on 
having separate files, I would say just make them HTML snippets and name 
them however you want.  All you would want in these files is HTML you 
will print out to the browser.  By the way, .doc is a bad idea.  Very 
bad.  Bad and wrong like microsoft is bad and wrong.  Use open standards 
and your life will be much easier.

- Johnathan


Hughes, Andrew wrote:

>I want to create an website where my brother can load his news articles for
>searching, sorting, displaying and printing online.  I can figure out the
>basics with perl (CGI.pm and DBI) and mySQL.  However, I was wondering what
>would be the best way to go about storing each article's content considering
>that I will want to format the output and keep paragraph breaks online etc.
>Do I store them as .txt files, .doc files or cut an paste the content?  Any
>input from people who have gone down this path or can point out some
>possible pitfalls is greatly appreciated.
>
>Thanks,
>Andrew
>




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to