views:

199

answers:

2

What is the difference between:

HTML
SHTML
PHTML

Why and when i'll use which one?

+2  A: 

Use static HTML when you want to have static content. Use SHTML if you want to do simple things such as includes. Use PHTML if you want to use logic (though it's possible to do with SHTML if you really want to).

Eli Grey
+2  A: 

It looks like SHTML = Server Side include HTML (SSI), which is just a fancy way of saying the server can dynamically inject code at the reference point (i.e. where the include is).

PHTML is an encoding method for encrypting php code.

PHTML had several other versions as well, but most looked like they were related to PHP encoding of HTML pages.

GrayWizardx
PHTML is not an encoding method. That link is a PHTML encoder. That means it __encodes PHTML__. PHTML is just another way to say HTML code with inline PHP processing instructions.
Eli Grey