I've got a problem with using XHTML inside
PHP skcripts.
My script looks like this one:
script.php:
<?xml version="1.0"?>
<!DOCTYPE ...>
<html xmlns= ...>
<head> ... </head>
<body>
<?php echo 'Hello word!'; ?>
</body>
</html>
error is:
Parse error: parse error, unexpected T_STRING in D:\Web_Projects\test.php on line 1
I understand why it occur, but, I can't understand why PHP interpreter, didn't look after the "<?" where is "xml" header, that means, don't interpret it, it's XML code. Just leave it as it is.
It's problem of PHP or Apache or "php.ini" file?
I know I can fix it like this:
<?php echo '<?xml version="1.0"?>'; ?>
Thanx for advice, fukas