You are here: Re: PHP "within" HTML « All PHP « IT news, forums, messages
Re: PHP "within" HTML

Posted by J.O. Aho on 07/01/06 14:35

Lee wrote:
>>> AddType application/x-httpd-php .htm (or .html OR both!)
>>>
>>> This needs to be placed either in an .htaccess or within the
>>> configuration file for your
>>> server.
>> I would suggest against this. Files that are appended with .php are
>> processed by the server and output to the browser as text/html files,
>> so if you want to use PHP inside normal webpages, simply rename your
>> html files .php. If you change the htaccess configuration so that the
>> server parses .html files, the server has to scan and check every
>> single html file that is output, and especialy if you have a good
>> number of html files which are just static html, that's a waste of
>> server resources and speed. I would suggest reserving .html to files
>> which never need to output dynamic content, and any html files which
>> need processing can use .php instead.
>
> It's just in the one .html file and just a 'simple' read .txt file and
> display what is in that file. Which btw would be very little.

Maybe an IFRAME-tag would do the job for you instead of messing in some php,
in case you want to keep it as an *.html file.


//Aho

 

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

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