You are here: Re: PHP while name still .html « PHP Language « IT news, forums, messages
Re: PHP while name still .html

Posted by Oli Filth on 05/23/05 17:42

Aldo wrote:
> Hi,
> I use latex2html to generate a site; it creates an indexed table of
> content, but the files are all named .html; is it possible to use
> htaccess or other to tell Apache that there is maybe a PHP code in these
> .html while the name is still file.html?
>
> (I'm not a PHP specialist, sorry; but its for a work).
>

I believe that you need to use the line:

AddType application/x-httpd-php .html

in your .htaccess or httpd.conf file.

However, this is not recommended practice, and also means that every single HTML
file will be pre-processed by the PHP engine, which slows down the speed at
which documents are returned. It would be better to rename those files that
actually have PHP in them.

--
Oli

 

Navigation:

[Reply to this 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

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