Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder ajetrumpet's Avatar
    Join Date
    Jul 2009
    Location
    Iowa City, IA
    Posts
    407
    Thanks
    44
    Thanked 5 Times in 5 Posts

    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!

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    mod_rewrite, anybody?

  • #3
    Regular Coder ajetrumpet's Avatar
    Join Date
    Jul 2009
    Location
    Iowa City, IA
    Posts
    407
    Thanks
    44
    Thanked 5 Times in 5 Posts
    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?

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    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?

  • #5
    Regular Coder ajetrumpet's Avatar
    Join Date
    Jul 2009
    Location
    Iowa City, IA
    Posts
    407
    Thanks
    44
    Thanked 5 Times in 5 Posts
    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?

  • #6
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •