If you just want to set this for a single file, just use a
Location /path/filename
ForceType application/x-httpd-php
/Location
in your httpd.conf file. .htaccess files are generally evil and should be
avoided if you have control over your httpd.conf file.
Note that the mime-type. There is no
PROTECTED]
Sent: Thursday, August 16, 2001 1:27 AM
Subject: Re: [PHP] to set file tye at apache module using htaccess
If you just want to set this for a single file, just use a
Location /path/filename
ForceType application/x-httpd-php
/Location
in your httpd.conf file. .htaccess files
In response to Rasmus, I need to make this for all html files under a
domain, not just one file. Is there anyway to do this?
Sure, in your httpd.conf file look for your VirtualHost block for the
dmain and add:
AddType application/x-httpd-php .html
-Rasmus
--
PHP General Mailing List
, it will drive them nuts
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Jack [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 1:34 AM
Subject: Re: [PHP] to set file tye at apache module using htaccess
In response to Rasmus, I need to make
: Thursday, August 16, 2001 2:01 AM
Subject: RE: [PHP] to set file tye at apache module using htaccess
Yes, you can.
Maxim Maletsky
-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 3:33 AM
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] to set file
Yes, you can.
Maxim Maletsky
-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 3:33 AM
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] to set file tye at apache module using htaccess
In response to Rasmus again, please bare with me a sec, where can I
I used the syntax below to set Apache module in file
.htaccess and did not work still, as I wrote some php script
to print text in an html file and did not do anything yet.
**
AddType application/x-httpd-php4 .html
**
What is the correct way
file tye at apache module using htaccess
I used the syntax below to set Apache module in file
.htaccess and did not work still, as I wrote some php script
to print text in an html file and did not do anything yet.
**
AddType application/x-httpd-php4 .html
8 matches
Mail list logo