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

Posted by one man army on 01/22/06 01:33

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?

 

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

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