Subject: | Why Am I Getting the PHP Source Code Instead of the Browser-interpreted Code? |
Posted by: | sherman |
Date: | Mon, 28 Jul 2008 |
This has happened to me before, but I do not remember
what the problem actually was. I am using Apache 2.2
and PHP 5.1. In the Apache configuration file I have added the
following lines:
=================
LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
# configure the path to php.ini
PHPIniDir c:/php
================
However, when I try to view the file "127.0.0.1/index.php"
I get the source code, and not the browser-interpreted code.
Any help would be appreciated.
Thanks!
sherman
PS. Windows XP, 3.4GB CPU, 2GB RAM