SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 1999
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I searched through the boards but could not find an answer to my question. I have a site that is partly in php and partly in static html files.

    I want to find a way so that all my enxtensions are .html. How do I get php to read files that end in extensions other than .php?

    Also, assuming I find a way, would people see a lot of lag when php goes through the regular .html files I currently have on the site?

    Thanks for your time.

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes it will cause extra overhead to parse all pages for php, to do this create a .htaccess file and stick it in the folder whee you want the parsing to happen and add the following line to it

    AddType application/x-httpd-php .html .htm

    Of course you can put whateer extensions in there that you want to add.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    SitePoint Evangelist
    Join Date
    Feb 2000
    Location
    England
    Posts
    568
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the figure i read somewhere was 20% extra load for the server, where this came from i am not sure but i think i read it a SP somewhere.

  4. #4
    SitePoint Wizard
    Join Date
    Apr 2000
    Posts
    1,483
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It will be extra load but only that much if you have loads of .html pages, because it would have to parse every HTML page. But if you don't have any HTML pages that don't contain PHP, then it shouldn't slow it down too much.


Bookmarks

Posting Permissions

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