hello,
I have a new wamp 1.7.2 install on WinXP Prof and all runs fine except when I load a .html page that contains php script -- the expected php output is not there. I can load and run .php files fine and they display as expected, no issues, so I know php is working well. I even installed drupal under this wamp install and it works perfectly as well. Normal .htm and .html files work fine without any php scripts in them. The issue is php inside .htm or .html files appears to not be parsed/processed.
I'm using the standard httpd.conf file and changed nothing from the default install other then enabling gd2 extensions in the php.ini file.
In the example "test.html" file below in the c:/wamp/www directory, I simply get a blank screen. (running it from the same pc going to [
localhost])
*************************
<html>
<head>
<title>Test</title>
</head>
<body>
<?php
print ("Hello test"
;
?>
</body>
</html>
*************************
When I look at the source from IE, it shows the above exactly.
When I browse to a .php file such "test.php" below (http://localhost/test.php), my browser displays what I expect (i.e. "Hello test"
.
*************************
<?php
print ("Hello test"
;
?>
*************************
Please excuse the dumb question, but is there a simple config change I need to apply to make php scripts parse from inside .html files or am I fundamentally missing something? I am very new at php programming.
thanks!