Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-20-2010, 10:52 PM   PM User | #1
ajetrumpet
Regular Coder

 
ajetrumpet's Avatar
 
Join Date: Jul 2009
Location: Iowa City, IA
Posts: 397
Thanks: 43
Thanked 5 Times in 5 Posts
ajetrumpet is an unknown quantity at this point
one .html file per technical article

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/f...ning-9823.html

As you can, no query string. Just a URL. may I have some enlightenment from anyone here? thanks so much!
ajetrumpet is offline   Reply With Quote
Old 12-20-2010, 11:47 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,703
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
mod_rewrite, anybody?
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 12-21-2010, 12:01 AM   PM User | #3
ajetrumpet
Regular Coder

 
ajetrumpet's Avatar
 
Join Date: Jul 2009
Location: Iowa City, IA
Posts: 397
Thanks: 43
Thanked 5 Times in 5 Posts
ajetrumpet is an unknown quantity at this point
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?
ajetrumpet is offline   Reply With Quote
Old 12-21-2010, 12:59 AM   PM User | #4
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
Quote:
Originally Posted by ajetrumpet View Post
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?
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!
Apostropartheid is offline   Reply With Quote
Old 12-21-2010, 06:06 AM   PM User | #5
ajetrumpet
Regular Coder

 
ajetrumpet's Avatar
 
Join Date: Jul 2009
Location: Iowa City, IA
Posts: 397
Thanks: 43
Thanked 5 Times in 5 Posts
ajetrumpet is an unknown quantity at this point
Quote:
Originally Posted by Apostropartheid View Post
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?
ajetrumpet is offline   Reply With Quote
Old 12-21-2010, 12:28 PM   PM User | #6
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,703
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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”).

Quote:
Originally Posted by ajetrumpet View Post
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:40 AM.


Advertisement
Log in to turn off these ads.