Results 1 to 3 of 3

Thread: Using php include in an .html page

  1. #1
    Member bhills's Avatar
    Join Date
    Mar 2004
    Location
    Rocky Mountains
    Posts
    75

    Default Using php include in an .html page

    I'm going to put a few php includes in some .html pages. In researching this, it seems I have to add a line to the htaccess file. A tutorial recommended adding one of the following two lines to the htaccess file:

    For a normally configured web server:
    AddHandler cgi-script .html .htm

    A web server running FastCGI:
    AddHandler fcgid-script .html .htm

    What I need to know is which those two lines to add to the htaccess file. I haven't a clue whether the dathorn servers are running FastCGI

    Can someone please advise.

  2. #2
    Administrator AndrewT's Avatar
    Join Date
    Mar 2004
    Location
    Tulsa, OK
    Posts
    3,634

    Default

    Neither of those will work. To use PHP code in a .html file you need to force your .html files to be executed by PHP. You would add the following to your .htaccess file:

    Code:
    AddHandler application/x-httpd-php .html

  3. #3
    Member bhills's Avatar
    Join Date
    Mar 2004
    Location
    Rocky Mountains
    Posts
    75

    Default

    thanks, will do...

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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