PHP and SSI

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amolkad
Forum Newbie
Posts: 22
Joined: Tue Jun 01, 2004 7:22 am

PHP and SSI

Post by amolkad »

Hi,

I want to develope php page which has SSI. I mean to say that the extension should be .html and not .php.

Can any one tell me the way by which I can achieve the same.

Thanx in advance.

Amol
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Well, which is it? You want to develop a PHP page with SSI or have your extension be .html instead of .php?

Also, why do you think you need to use SSI?
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

sounds to me like hes after what i commonly refer to as 'tricking' users into thinking its .html instead of .php

is'nt this HTACCESS?
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

or he could add a handler to make the web server always parse .html files with the php interpreter
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

If he doesn't own the server, like most people out there, he can't really do that. I think it's possible through .htaccess though.

Cheers!
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

well if he buys hosting and his host offers cpanel, then you can add apache handlers through the interface, rather easy infact
Post Reply