This is an example code.
In my .html
file, I am using following HTML + PHP-code:
Today is: <? print(Date("l F d, Y")); ?>.
I would expect to see:
Today is: monday October 4, 2010.
The only thing I see is:
Today is:.
(mind the dot at the end).
This means the PHP-code is not processed!
PHP-code in a .php file works fine.
I tried to add AddType application/x-httpd-php .htm .html
and addtype application/x-httpd-php .php .htm .inc .html
to the .htaccess
file, neither of which helped.
Is there something wrong with my hosting-provider? (on Apache server) Or am making some mistake?
Please help, as I am puzzling for many days now.