Martin,Hi, I just installed (i think) php on my apache2 webserver. I added to http.conf:
# PHP 5 beta 4 LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php
And put php.ini in c:\program files\....\apache2 with: extension_dir = "c:\php\ext"
When I try the following html: <html> <head> <title>Examples</title> </head> <body> <?php echo ("Hi, I'm a PHP script!"); ?> </body> </html>
And open http://localhost
I see the title: "Examples" but no message with " Hi, I'am a PHP script!".
What could be wrong?
This is expected behaviour if you call the file something with an ".html" extension as you have only asked Apache httpd to parse files with the ".php" extension with php. If you have given it an ".html" extension then either change it to ".php" (recommended) or configure httpd to also get ".html" files parsed by php.
HTH Chris