PHP Problems, please help.

I am trying to install Apache/PHP on my windows machine at home so I can work offline. I got Apache installed, and I tried to install PHP (CGI binary) but I ran into a problem. The problem wasn't apparent until after the install. After the install was complete, I made a file called phpinfo.php and placed the following code inside of the file to make sure php was working correctly.
PHP Code:
<?php>
phpinfo();
?>
But when viewing http://localhost/phpinfo.php I see the code, and not the php information I should be seeing.

This is the last few lines of my httpd.conf file.
PHP Code:
...
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

#ScriptAlias /php/ "c:/php/"
#AddType application/x-httpd-php .php
#Action application/x-httpd-php "/php/php-cgi.exe" 
Any help is very much appreciated. If you need more information just let me know and I'll reply within minutes.

 

 

 

 

Top