You are here: Re: Treating .html pages as PHP « PHP Programming Language « IT news, forums, messages
Re: Treating .html pages as PHP

Posted by Kim Andr� Aker� on 10/06/06 20:27

laredotornado@zipmail.com wrote:

> Hi,
>
> I'm running PHp 4.4.4 on Apache 2. In a particular directory, I would
> like .html pages to be run thorugh the PHP interpreter -- i.e. have
> "<?php" tags evaluated. Note, that I only want this within a single
> directory and not the entire web server. How could I set this up?

Place the following in a .htaccess file in the directory you want this
to happen:

AddType application/x-httpd-php .html

--
Kim André Akerø
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)

 

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

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