[PHP] .html extension PHP page be interpret

2003-11-18 Thread BennyYim
I using WinXP + Apache 1.3.24 + PHP 4.3.3
 
My apache default will interpret .php extension file. (e.g.
index.php)

If I have a PHP page, but I want to use .html file extension (e.g. index.html).
what I need to set to make those html extension page be interpret by server.

I want those .html extension PHP page be interpret.

Thank You !


.---.
| Message Posted by NewsgroupXplorer|
| http://www.newsgroupxplorer.com   |
|   |
| Your newsreader in your browser.  |
`---'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] .html extension PHP page be interpret

2003-11-18 Thread Nathan Taylor
That's simple, just modify your Apache httpd.conf on the line where it says something 
along the lines of:

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

change it to:

AddType application/x-httpd-php .php4 .php .html .php3 .inc
  - Original Message - 
  From: BennyYim 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, November 18, 2003 5:46 AM
  Subject: [PHP] .html extension PHP page be interpret


  I using WinXP + Apache 1.3.24 + PHP 4.3.3
   
  My apache default will interpret .php extension file. (e.g.
  index.php)

  If I have a PHP page, but I want to use .html file extension (e.g. index.html).
  what I need to set to make those html extension page be interpret by server.

  I want those .html extension PHP page be interpret.

  Thank You !


  .---.
  | Message Posted by NewsgroupXplorer|
  | http://www.newsgroupxplorer.com   |
  |   |
  | Your newsreader in your browser.  |
  `---'

  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] .html extension PHP page be interpret

2003-11-18 Thread Eugene Lee
On Tue, Nov 18, 2003 at 10:46:48AM -, BennyYim wrote:
: 
: I using WinXP + Apache 1.3.24 + PHP 4.3.3
:  
: My apache default will interpret .php extension file. (e.g.
: index.php)
: 
: If I have a PHP page, but I want to use .html file extension (e.g. index.html).
: what I need to set to make those html extension page be interpret by server.
: 
: I want those .html extension PHP page be interpret.

Look for the following line in your Apache configuration file and change
it thusly:

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

See the online docs for more specifics:

http://www.php.net/manual/en/install.apache.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] .html extension PHP page be interpret

2003-11-18 Thread Wouter van Vliet

 -Oorspronkelijk bericht-
 That's simple, just modify your Apache httpd.conf on the line
 where it says something along the lines of:

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

 change it to:

 AddType application/x-httpd-php .php4 .php .html .php3 .inc

And please, PLEASE remove .inc from the list, and add smth like

Files /.*\.inc/
Deny from all
/Files

I'm not sure about the syntax, but believe me .. what I am telling you is
what you want :D:D

Wouter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] .html extension PHP page be interpret

2003-11-18 Thread Jay Blanchard
[snip]
I using WinXP + Apache 1.3.24 + PHP 4.3.3
 
My apache default will interpret .php extension file. (e.g.
index.php)

If I have a PHP page, but I want to use .html file extension (e.g.
index.html).
what I need to set to make those html extension page be interpret by
server.

I want those .html extension PHP page be interpret.
[/snip]

Answered once in the last 24 hoursadd the following line to your
httpd.conf and then restart Apache

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php