Reply to Re: PHP in html

Your name:

Reply:


Posted by Matt S on 07/27/07 21:48

Captain Paralytic wrote:

> On 27 Jul, 15:58, John <John_nos...@nnnnnnnnn.nowhere> wrote:
>> On Fri, 27 Jul 2007 02:02:52 -0700, Captain Paralytic
>>
>> <paul_laut...@yahoo.com> wrote:
>>
>> >A php include has to go in a php file.
>>
>> >HTML includes are normally done using SSI.
>>
>> >If you are using HTL includes then you are asking in totally the wrong
>> >place.
>>
>> That is incorrect.
>>
>> You can have php includes in a html file.
>
> How does that work?
AddType application/x-httpd-php .html
For Apache of course. You just force the MIME type of .html files to be PHP
files. If you're using an executable directory so to say (+ExecCGI), you
could just put #!/usr/bin/env php at the top and it would be treated as a
PHP file regardless of file extension.
--
'Yes, firefox is indeed greater than women. Can women block pops up for you?
No. Can Firefox show you naked women? Yes.'

[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

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