...

View Full Version : one .html file per technical article



ajetrumpet
12-20-2010, 10:52 PM
all,

I am a member of this forum: http://www.accessforums.net

When you create a new thread there, it produces a brand new html page instead of querying a mysql database and displaying that way. Can anyone tell me how this is done?

I want to be able to write short technical articles for my website, but not keep the entire content in a database field and query it. Basically, I want to write them in either a .txt or a .doc file, or html file, or whatever, and have them display AS IS on my website. Is that possible? And if it is, do I have to upload these files one by one, or in one big directory?

Would anyone know how that forum i mentioned above is doing it? Surely they don't have space on their servers to be storing a million html pages like that. Here is an example of a thread created: http://www.accessforums.net/access/front-end-ballooning-9823.html

As you can, no query string. Just a URL. may I have some enlightenment from anyone here? thanks so much!

VIPStephan
12-20-2010, 11:47 PM
mod_rewrite (http://knol.google.com/k/seo-friendly-url-or-pretty-url-using-apache-mod-rewrite), anybody?

ajetrumpet
12-21-2010, 12:01 AM
very nice. thanks.

got any thoughts on the other part of my post? producing content based on documents instead of 5000-10000 words in a single text field of the database?

Apostropartheid
12-21-2010, 12:59 AM
very nice. thanks.

got any thoughts on the other part of my post? producing content based on documents instead of 5000-10000 words in a single text field of the database?

Why would you ever want to do this?

ajetrumpet
12-21-2010, 06:06 AM
Why would you ever want to do this?

if you read the first post, you'll gather it's because I don't know how else it can be generated. Care to enlighten me?

for instance, how do the articles from cnn contributors populate on the page when you want to read it on their website? surely the article is stored somewhere on the server, huh?

VIPStephan
12-21-2010, 12:28 PM
This is all done with a database. There’s no other efficient way to do it. My point was that it can be made to look like it was all single static HTML files through mod_rewrite (a. k. a. “pretty URLs”).


Basically, I want to write them in either a .txt or a .doc file, or html file, or whatever, and have them display AS IS on my website. Is that possible?

This is possible with server side includes (“SSI” or PHP includes) but seriously, a database is much more efficient, especially if you are dealing with larger numbers of items to include.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum