Reply to Re: Force apache to parse html files as php

Your name:

Reply:


Posted by Lars Eighner on 12/05/07 22:55

In our last episode, <47570A79.CAA856F0@thelogconnection.com>, the lovely
and talented Gary Hasler broadcast on comp.lang.php:

> I had SSI turned on earlier in the httpd.conf and I guess it can't do
> both?:

No, you can't. You can write out a file from php with SSI to be served
later and if things are configured properly that file can be parsed for
SSI, but you cannot serve a php file and have it parsed for SSI, nor can you
serve cgi with SSI that you mean to be parsed, include php via SSI, nor just
about any other combination you can think of.

This is a pretty reasonable limitation if you think about it --- just how
many bites at the preprocessing apple should a server allow you before it
sends the document out? Since it is trivial in php or cgi to do includes,
even includes which in other contexts may be done by SSI, this should not
pose many difficulties.

--
Lars Eighner <http://larseighner.com/> usenet@larseighner.com
Countdown: 411 days to go.

[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

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