I am new to PHP development.

I am trying to setup a PHP developer environment on my Windows 2000 desktop system.

I have Apache 2.0.52 installed and running - I'm currently using Apache for another application via a Servlet plug-in

I have installed PHP 4.4.2 and I can run php -i command verifying php.exe runs..

When I try to test a simple PHP page I just get a IE dialog asking me if I want to Open or Save the .php file instead of running the PHP code.

Here is my current setup of PHP related items in httpd.conf:

#LoadModule php4_module modules/php4apache2.dll

LoadModule php4_module D:/php-4.4.2-Win32/sapi/php4apache2.dll

AddType application/x-http-php .php .phtml

PHPIniDir D:/php-4.4.2-Win32/

I have tried the following type of weblinks to test this:

1. Simple .php file accessed like this: <http://myhost/phpinfo.php>

phpinfo.php has one line:
<?php phpinfo(); ?>

2. Embed call to php in html file called like this : <http://myhost/phptest.html>

Code for this in .html file looks like this:

<p>If you can see this, it means you can test PHP from here<a
href="">http://localhost/phpinfo.php">PHP <http://localhost/phpinfo.php> Info</a> </p>

Thanks
Debra



 

 

Reply via email to