faqts : Computers : Programming : Languages : PHP : Installation and Setup : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 17 people (41%) answered Yes
Recently 1 of 5 people (20%) answered Yes

Entry

Why is my PHP code executed in Microsoft browser but not in Netscape´s one?

Jun 18th, 1999 07:00
Nathan Wallace, Adrian Agata, se@lakenet.no, Nathan Wallace


Check that you have a line like this in your httpd conf file:

AddType application/x-httpd-php3 .php3

Remember that whatever extensions are added to this line defines what
extension your PHP files must use.  If you want to use .php and .php3
extensions then the line should read:

AddType application/x-httpd-php3 .php3 .php

If you just want to use .phtml files then use 

AddType application/x-httpd-php3 .php

You can use whatever extensions you like, but they must be defined
otherwise Apache doesn't know to send them through the PHP interpreter.