What is the difference between:
HTML
SHTML
PHTML
Why and when i'll use which one?
Web page that contains PHP code; parsed by a PHP engine on the Web server, which dynamically generates HTML; often used for database access, such as retrieving data from a MySQL database; can be run using Apache or Windows Server with the PHP engine installed.
phtml is a tool for transforming HTML with JavaScript. It fully embraces the HTML language, and aims to help you write and maintain HTML that you and future you feel good about.
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 HTML code with inline PHP processing instructions.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With