A couple questions about PHP
PostPosted: Sun Sep 11, 2005 11:36 am
I've been learning PHP and I have a few questions.
1) If I have any PHP in a file, does the file have to be saved as PHP? Can I put PHP in an HTML file and save it as an HTML and it will still work?
2) Also, when I put all the XHTML doctypes in my file, and then put PHP in it, it gives me a parse error. Does XHTML not like PHP?
1) If I have any PHP in a file, does the file have to be saved as PHP? Can I put PHP in an HTML file and save it as an HTML and it will still work?
2) Also, when I put all the XHTML doctypes in my file, and then put PHP in it, it gives me a parse error. Does XHTML not like PHP?