Calling a DOCTYPE using a PHP...

User 1941307 Photo


Registered User
19 posts

Is this possible? If and when changes are made to the DOCTYPE, it would make sense to have it in its own file, and use a PHP include to call it up. Is this possible?

<?php include("../includes/doctype.php"); ?>


Where doctype.php is a separate file that contains the code for the DOCTYPE.

Thoughts?

Ryan
User 463058 Photo


Ambassador
1,086 posts

It's possible, but what if the doctype isn't compatible with all your pages?
User 122279 Photo


Senior Advisor
14,648 posts
Online Now

It would be difficult if you want to use the Code Cleaner in HTML Editor.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 133269 Photo


Registered User
2,900 posts

YES!!!

I use a pagehead include file on 99.9% of sites i build

Have fun
~ Fe Pixie ~

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.