www.webdeveloper.com
Results 1 to 5 of 5

Thread: intergrate database and CMS content into .html

  1. #1
    Join Date
    Jan 2006
    Posts
    3

    Question intergrate database and CMS content into .html

    hi,
    i have a quick question although it might be a stupid one. I'v seen alot of site that uses .html extensions yet it has information retreived from a database, it also has header, footer and navigation that are dynamic on every page.

    My question is how is this possible, i really want to find out. I know alot about html, css and abit of php and mysql so you can get technical

    a couple of website that i can remember usin this scheme are : www.about.com
    www.cbc.com
    www.gamespot.com

    thankx alot, any help will be greatly appreciated.

  2. #2
    Join Date
    Nov 2005
    Location
    127.0.0.1
    Posts
    329
    I don't believe that's actually possible.
    my computer suffers from short-term memory loss.

  3. #3
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    You can configure the server to parse pages with all kinds of extensions, i.e. you can tell it to pass *.htm* to the PHP or the SSI or whatever processor you have available.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  4. #4
    Join Date
    Jan 2006
    Posts
    3
    thankx for the reply
    i did acouple of research on google on how to parse .php into .html they recommened adding "application/x-httpd-php .php .html" into .htaccess and include this file on every directory.
    Can i just add "application/x-httpd-php .php .html" into mimes.types? i tried it but it didnt work

    i am running apache 2.0.55

    thankx

  5. #5
    Join Date
    Jan 2006
    Posts
    3

    i figured it out

    I did it!! all i did was added "AddType application/x-httpd-php .php .php5 .php4 .php3 .html" in http.conf and it worked

    I tried doing it through .htacess and mimes.type but it didnt work

    thankxs for your help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles