You are here: Re: 2nd pair of eyes, simple ? « PHP Programming Language « IT news, forums, messages
Re: 2nd pair of eyes, simple ?

Posted by Jerry Stuckle on 01/22/06 01:56

one man army wrote:
> In article <Z7CdnRxLk-VvA0_eRVn-jQ@comcast.com>,
> Jerry Stuckle <jstucklex@attglobal.net> wrote:
>
>
>>>>><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>>>>> "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
>>>
>>>Oh! the Doctype counts. I did not see that anywhere. (thanks Kimmo)
>>>
>>> also, the file is called index.html. I would like to keep that.
>>> .....
>>
>>That explains it.
>>
>>You either need to use a .php extension, or you need to change your
>>Apache configuration to parse .html files as php code. But that will
>>cause ALL .html files to be parsed, whether they contain php code or not.
>
>
>
> hmmm, that's why I asked about the 'rules'. Because I have had
> snippets of PHP inline in the files so far, and it works. That's
> confusing.
>
> Perhaps the first chars of the file determine whether HTML or PHP
> extension is needed? Where is this documented?

Nope. It's the file extension that Apache or IIS use to determine
whether the file is to be parsed as php, asp or whatever.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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