Forum Moderators: phranque

Message Too Old, No Replies

How to create 1000's of content pages?

         

PFOnline

1:12 am on Jul 21, 2003 (gmt 0)

10+ Year Member



Hi all, I'm going to be making a Jokes website and I want to have 1 joke for each HTML page, but the question is, how would you go about making 1000's of HTML files for each joke?

Is there any easier way to do it than copy and pasting each joke into each HTML file?

Thanks. :)

archives

1:27 am on Jul 21, 2003 (gmt 0)

10+ Year Member



PDOnline

Place each of the jokes within a database. Create a template using 'includes' which draws the respective joke into the template. Depending upon the traffic flow you could use Access or preferably SQL to create the database.

Slade

1:43 am on Jul 21, 2003 (gmt 0)

10+ Year Member



An idea to go along with that is to include another field in the database that categorizes the Jokes. That way, you can create directory pages that link to all the jokes directly from the database as well.

sharbel

1:19 am on Jul 22, 2003 (gmt 0)

10+ Year Member



Not only that, you should have administrator pages which will allow you to add jokes, edit them, and delete them..

If you already have the jokes in a text file or something to that effect, you can likely write a script to read the files and insert the jokes to the database for you