Hi
I'm essentially a back-end programmer so I don't know very much about
Dreamweaver. However, I work with web-designers who are keen for me to
write my pages using Dreamweaver templates.
One problem that has emerged straight away is that of XHTML compliance. I
understand (and please correct me if I'm wrong) that in order to achieve
this, every document must start with a line like:
<?xml version="1.0" encoding="iso-8859-1"?>
However, this won't work in PHP, because as soon as it sees the '<?' it
assumes that what follows is php code (and crashes).
It's simple enough to add the line:
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n"; ?>
at the top of your PHP pages, but then it won't work in plain HTML, so it
can't go in the template. What we need is version 1 of the line in HTML
docs and version 2 in PHP docs.
Does anyone know the answer to this problem?
I'm essentially a back-end programmer so I don't know very much about
Dreamweaver. However, I work with web-designers who are keen for me to
write my pages using Dreamweaver templates.
One problem that has emerged straight away is that of XHTML compliance. I
understand (and please correct me if I'm wrong) that in order to achieve
this, every document must start with a line like:
<?xml version="1.0" encoding="iso-8859-1"?>
However, this won't work in PHP, because as soon as it sees the '<?' it
assumes that what follows is php code (and crashes).
It's simple enough to add the line:
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n"; ?>
at the top of your PHP pages, but then it won't work in plain HTML, so it
can't go in the template. What we need is version 1 of the line in HTML
docs and version 2 in PHP docs.
Does anyone know the answer to this problem?
Comment