Jump to content
Killersites Forums

..what DOCTYPE is it then?


Recommended Posts

Your files should either be HTML strict or XHTML strict... See this post: http://www.killersites.com/forums/topic/62/html-or-xhtml-updated-30-july-06/


In order for the server to be able to understand and display PHP code correctly, it needs to be within the www directory. Usually, I create a new folder within the www directory for each new project I work on, and keep all of my files (php, html, css, etc) within that directory.

Link to comment
Share on other sites

PHP files are either HTML or XHTML depending on the doctype.


PHP adds some server-side functionality to HTML or XHTML pages where there is PHP code, the rest of a page may be just HTML or XHTML.


Your website may have some pages with PHP code in them and .php filename extension and other pages just HTML or XHTML with .html filename extension.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...