php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13909 Parsed .php as .html error when parsed .shtml as .html exist
Submitted: 2001-11-02 13:06 UTC Modified: 2001-11-09 03:19 UTC
From: earnpin at it-lodge dot com Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.0.6 OS: Linux RH 7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: earnpin at it-lodge dot com
New email:
PHP Version: OS:

 

 [2001-11-02 13:06 UTC] earnpin at it-lodge dot com
When both server-parse exist in httpd.conf, one will not work. How to make Apache to parse .php as .html and then follow by parsing .shtml as .html.

My conf is as followed:
 
    AddType application/x-httpd-php .php .html
    AddType application/x-httpd-php-source .phps

    AddType text/html .shtml .html
    AddHandler server-parsed .shtml .html

-----------

Help please,

Cheers,
Earnpin Lee, earnpin@it-lodge.com

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-02 13:23 UTC] sander@php.net
AFAIK, you can't with 1.3.x. You can try 2.0, which is still in beta (or alpha?).
 [2001-11-02 13:26 UTC] cnewbill@php.net
I am pretty sure Apache 1.3.x only allows one processor for an extension.  There are convuleted (VERY) ways to do this, but why???  Why would you want this?? :)  Everything shtml can do, so can PHP and more.

-Chris
 [2001-11-09 03:19 UTC] joey@php.net
Actually, it's not all THAT convoluted:

index.html <where .html is going to be processed by
             SSI...not reccomended behavior>
<!-- your ssi stuff here -->
<!-- #include virtual="/page/to/be/parsed/by.php" -->


But I would also point out that PHP is a much more
flexible structure than SSI, while covering (more or less)
all of SSI's feature set, and you should really look closely
at any solution that requires this workaround.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC