Re: Serve html file parsed for ssi



Alice wrote:
I'm not the machine admin. So I don't know how I would be able to configure Apache to parse html files through both.

There has got to be a way to do this.


"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:VuednZKYPYvINqnbnZ2dnUVZ_uTinZ2d@xxxxxxxxxxxxxx
Alice wrote:
How can I make php script serve up an *.html file 'server-parsed' for SSI's?

The goal is to pre-process all *.html files with php script, but the SSI's need to be handled too. Problem with using 'virtual' is that it creates a loop via the .htaccess handler setting/action.

.htaccess
# Enable SSI
Options +Includes

# HTML Handler
AddHandler HTML .html
Action HTML /HTML.php

HTML.php
<?PHP

<snip>

$file = $_SERVER['PATH_TRANSLATED'];
include $file;
?>

A terrible approach. But just set your Apache configuration up to parse html files through both.

Try alt.apache.configuration for more info.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================



The correct way is to modify your Apache configuration to do it. If you aren't the server admin, then get the server admin to set it up for you.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: web page aligment with publisher.
    ... This works only for websites created with Publisher 2000 ... Each of your html files requires adding the code after the existing code. ... I installed Pub 2002 on the Vista machine and the exported HTML code was entirely different than the code the XP machine exported and I COULD NOT center the page ...
    (microsoft.public.publisher.webdesign)
  • Re: web page aligment with publisher.
    ... I use Publisher 2000 and it also creates websites left justified. ... Each of your html files requires adding the code after the existing ... I installed Pub 2002 on the Vista machine and the exported HTML code was ...
    (microsoft.public.publisher.webdesign)
  • Re: Converting Pub 2007 to html
    ... nothing but images because you overlapped design elements, ... The other major faux pas you have been doing, is editing the html files. ... Publisher is not a html editor. ...
    (microsoft.public.publisher.webdesign)
  • Re: cant move picture
    ... No not unethical...you wrote the html it's your's you can do whatever you ... it to Publisher would be kinda like converting an English document to ... | A couple years back I created some html files using a fairly basic html ... | on his server so I ftp'd the files to his server. ...
    (microsoft.public.publisher.webdesign)
  • Re: <?php ...... ?> ignored? Whats wrong???
    ... > You can configure Apache to parse HTML files through the PHP parser as ...
    (comp.lang.php)