You are here: Re: Newbie: PHP output within HTML page « All PHP « IT news, forums, messages
Re: Newbie: PHP output within HTML page

Posted by Tom on 08/09/07 18:37

On Thu, 9 Aug 2007 08:32:45 -0400, \"Crash\" Dummy wrote...
>
>> AddHandler application/x-httpd-php .htm
>> AddHandler application/x-httpd-php .html
>
>> You would need to restart Apche again so it rereads the config file, but
>should
>> get you were you want to go. It would allow you to add PHP content with the
>HTML
>> pages, so that you don't have to rename all the pages on your site to .php
>> files.
>
>It should be noted that passing all the passive HTML pages through the PHP
>engine will slow response times and increase work for the server.


If he's stuck with pre-existing .html files and he can't rename them, I don't
know of too many other options. : )

If he were to change all his files to .php, to add dynamic content, the server
would still have to parse all the content. It would probably take more time to
rename all the files to the .php extension, then adjusting the config in Apache.
In either case the server would have to parse the PHP content whether it was
working with .php or .html files.

Tom
--
NewsGuy Takes Usenet Cellular!
Download newsgroup pictures and MP3s to your Cell or PDA
Free Trial - http://newsguy.com/cellphone.htm

 

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

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