I have a index.php file:
<?php
// Load resources shared across the website
include '../path/to/other_file.php';
?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es" prefix="og: http://ogp.me/ns#">
<head prefix="article: http://ogp.me/ns/article#">
<title>Title</title>
</head>
<body>
<!-- Code -->
</body>
</html>
When I load it, it shows nothing. I used this online tool to see what's happening. The problem occurs at line 5.
Probably it's that I'm using <? to introduce the XHTML document, but I guess PHP thinks the following word would be php (<?php //CODE ?>) instead of xml (<?xml version="1.0" encoding="UTF-8"?>)
How can I fix it? I think it's called "parsing" or "espacing" the characters.