Martin, 

I had the same problem. Call the script index.php or hello.php

Once that is done from your browser type in the following

http://localhost/index.php or http://localhost/hello.php

You should be able to see the parsed php script..

Regards
Hari

-----Original Message-----
From: Chris Hewitt [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 06, 2004 10:27 AM
To: Martin Bos
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-INSTALL] Install php5b4 on apache 2.0.48

Martin Bos wrote:

>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?
>
Martin,

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

Reply via email to