In Database - to HTML
Posted: Mon Nov 25, 2002 6:56 am
Here's a question...I'm storing news stories in a MySQL database. These stories are searchable by date, subject, category, keywords, etc. Well we are adding an option to send the article via e-mail to yourself or a friend. The company wants to be able to send an HTML link instead of just having the story in the e-mail.
Everytime a new story enters the database, should we just go ahead and produce it to a txt HTML file as well and call it "UniqueID.html". Otherwise, the server would just get cluttered with pages from old old searches. Would it still be better to generate them on the fly instead of creating an HTML page for every article at the time they enter the database?
Everytime a new story enters the database, should we just go ahead and produce it to a txt HTML file as well and call it "UniqueID.html". Otherwise, the server would just get cluttered with pages from old old searches. Would it still be better to generate them on the fly instead of creating an HTML page for every article at the time they enter the database?