You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Manjit Riat <ma...@riat.net> on 2003/05/01 20:27:04 UTC

[users@httpd] Interpreting HTML pages with PHP

Ok I have apache 2.0 with PHP and redhat 8.0 installed 
It working fine 
But I have couple of pages that have php and have a .html extension .. 
So I added the following line in httpd.conf 

AddType application/x-httpd-php .html 

The site works fine in IE.. but when i open it up in Netscape I get a
message dialog box saying 
"You have started to download a file of type 
application/x-httpd-php ...." 

and there are 4 buttons that say more info, pick app, save file and
cancel. 

When I press cancel the site shows up just fine.. 

So now the question. 

Why am i getting the message dialog box to pop up ?? 

THank You
 

RE: [users@httpd] Interpreting HTML pages with PHP

Posted by Manjit Riat <ma...@riat.net>.
Well it's a who site with a huge number of pages.. They worked fine with
apache 1.3 
So do I have to revert back to Apache 1.3 ???
 
-----Original Message-----
From: Eric [mailto:nyre@kiercorp.com] 
Sent: Thursday, May 01, 2003 11:35 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Interpreting HTML pages with PHP
 
why not save the html files with the php extension.
 
----- Original Message ----- 
From: Manjit Riat <ma...@riat.net>  
To: users@httpd.apache.org 
Sent: Thursday, May 01, 2003 12:27 PM
Subject: [users@httpd] Interpreting HTML pages with PHP
 
Ok I have apache 2.0 with PHP and redhat 8.0 installed 
It working fine 
But I have couple of pages that have php and have a ..html extension .. 
So I added the following line in httpd.conf 

AddType application/x-httpd-php .html 

The site works fine in IE.. but when i open it up in Netscape I get a
message dialog box saying 
"You have started to download a file of type 
application/x-httpd-php ...." 

and there are 4 buttons that say more info, pick app, save file and
cancel. 

When I press cancel the site shows up just fine.. 

So now the question. 

Why am i getting the message dialog box to pop up ?? 

THank You
 

Re: [users@httpd] Interpreting HTML pages with PHP

Posted by Eric <ny...@kiercorp.com>.
why not save the html files with the php extension.

  ----- Original Message ----- 
  From: Manjit Riat 
  To: users@httpd.apache.org 
  Sent: Thursday, May 01, 2003 12:27 PM
  Subject: [users@httpd] Interpreting HTML pages with PHP


  Ok I have apache 2.0 with PHP and redhat 8.0 installed 
  It working fine 

  But I have couple of pages that have php and have a ..html extension .. 
  So I added the following line in httpd.conf 

  AddType application/x-httpd-php .html 

  The site works fine in IE.. but when i open it up in Netscape I get a message dialog box saying 
  "You have started to download a file of type 
  application/x-httpd-php ...." 

  and there are 4 buttons that say more info, pick app, save file and cancel. 

  When I press cancel the site shows up just fine.. 

  So now the question. 

  Why am i getting the message dialog box to pop up ?? 

  THank You