dina Posted December 29, 2008 Report Posted December 29, 2008 I am designing a php site, what DOCTYPE is it then. Another Q: do I then save every file I have incl. my php. , inc. , css. , images, etc. in www php directory? thank you.
falkencreative Posted December 29, 2008 Report Posted December 29, 2008 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.
dina Posted December 29, 2008 Author Report Posted December 29, 2008 Ok, thanks I get that now, but why do I need html files when I have PHP files, I have changed my html to php. Why would one then still need html files. thank you.
Wickham Posted December 29, 2008 Report Posted December 29, 2008 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.
dina Posted December 29, 2008 Author Report Posted December 29, 2008 goodness....grachesh, thank Wickham, I think I'm finally grasping it! I should be reading up much more and learning it I know, but like most of us am I in such a hurry, because I need some kind of portfolio by Jan 2009. thanks!!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now