Posted by:
toumimi
(---.237.115-78.rev.gaoland.net)
Hi,
It should be a type mistake but you should use <
?PHP ?>.
Then, you can't use php into htm or html file if you don't force it into apache configuration.
Open httpd.conf (from wamp menu)
Find those lines
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
and there you can set a new association : htm file is considerated as a php file (contains php sections)
AddType application/x-httpd-php .htm
Another solution is to rename your file with a php extension.
Note that to test a php file, you have to use [
localhost] (not file://___)
Florian
WampServer Patch (
Screenshots)
Topic EN :
www.wampserver.comTopic FR :
www.wampserver.com