Why Do I Get the PHP Source Code on My Screen With Apache and Localhost?
am 17.12.2007 23:56:49 von Maria
Many times, when I run a php-program on apache on my computer,
I get the source code of the program on my screen. This is happening
on both Internet Explorer and Firefox.
Thanks!
maria
Re: Why Do I Get the PHP Source Code on My Screen With Apache and Localhost?
am 18.12.2007 00:31:00 von Kees Nuyt
On Mon, 17 Dec 2007 17:56:49 -0500, maria
wrote:
>Many times, when I run a php-program on apache on my computer,
>I get the source code of the program on my screen. This is happening
>on both Internet Explorer and Firefox.
>Thanks!
>
>maria
You need something like
LoadModule php5_module php5apache2.dll
AddType application/x-httpd-php .php
DirectoryIndex index.php
(and index.html and whatever you like to have)
The exact name and location of php5apache2.dll depends on
your specific installation.
--
( Kees
)
c[_] There are two ways of constructing a software
design: One way is to make it so simple that there
are obviously no deficiencies and the other way is
to make it so complicated that there are no obvious
deficiencies. (C. A. R. Hoare, in his 1980 ACM
Turing Award lecture) (#490)