Reply to Serve html file parsed for ssi

Your name:

Reply:


Posted by Alice on 04/29/07 03:43

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;

?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация