Why Netscape shows me the source of my PHP pages instead of executing them?
Dec 19th, 2000 02:45
Eddy L O Jansson, Will McCutcheon, Don Broadhead, Kris Kumler, Gianandrea Terzi,
For your server, you probably do not have a correct install of PHP.
You must register your file types (.php/.php3) for the server
(Apache/IIS/PWS). Look in the documentation for this... Also, make
sure you set 'execute' permissions on the files & directories. The
server does not know to process the file as a script, so it is
outputting it as a plain/text file.
If you're running Apache, you probably just don't have these two lines
in your httpd.conf file:
AddType application/x-httpd-php3 .php3
AddHandler application/x-httpd-php .php .php3
If those are missing, add them and restart Apache.
If php was compiled with the '--disable-short-tags' option set, the <?
will not invoke php. The start tag has to be <?php...