HTML vs SHTML vs PHTML
Solution 1
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.
Solution 2
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).
A.N.M. Saiful Islam
I am a passionate programmer, designer, and explorer. I have over 12 years of experience collaborating with people from different backgrounds, finding creative solutions to complex problems, and shipping successful digital products. I have always enjoyed the challenge of creating interactive software. I can build a software application from concept to the final stage of construction. I design with purpose and meaning, keeping simplicity, usability, intuition, and beauty in mind. I follow the latest design research and trends to create user-friendly interface designs that offer a high level of user experience. I pay attention to detail. My designs are original and unique, my code is clean and organized, and my works are scalable and flexible to change. My philosophy towards my work and life is, ❝if something is worth building, it’s worth building right❞.
Updated on April 05, 2020Comments
-
A.N.M. Saiful Islam about 4 years
What is the difference between:
HTML SHTML PHTML
Why and when i'll use which one?