In article <ypudnTD-adgr8_DVnZ2dnUVZ_rjinZ2d@[EMAIL PROTECTED]
>,
Hamad bin Turki al Salami <hamad@[EMAIL PROTECTED]
> wrote:
[...]
> When I serve a file with .php extension, everything works fine. However,
> if I serve an .html file with embedded php tags, the tags aren't
> executed.
That's the intended default behaviour. You can configure Apache to also
interpret ".html" files as PHP, as someone else explained. But doing so
means that Apache has to parse each and every ".html" file to see if
perhaps it contains any PHP code. Most people do not embed PHP in
".html" files, so having Apache parse those files would be a waste of
CPU -- more efficient to use PHP code only in a dedicated file type,
".php". Hence the default.
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
Mac user: "Macs only have 40 viruses, tops!"
PC user: "SEE! Not even the virus writers sup****t Macs!"


|