DRSK wrote:wole wrote:Only the doctype is html5, all the rest is ordinary standard html
And all modern browser know this doctype and read it as html.
I'm sorry, your post makes no sense...
As is often the case with posts in the English forums by this non English speaking member.
DRSK wrote:And again, it is a fresh install, only changes done to httpd.conf are DocumentRoot "X:/Web" (line 183) and <Directory "X:/Web"> (line 210). The problem persists, having X:\Web\testfile.php with the content from my code block above will only output the elements that aren't HTML5. So <header> and <nav> etc aren't displayed, but the <p> is.
I edited my httpd.conf file and changed the lines above to:
- Code: Select all
DocumentRoot "H:/Web"
<Directory "H:/Web">
after creating a new folder Web in my H drive (no X drive and I remembered that Apache is case sensitive).
I then added the php code to the html5 code like so
- Code: Select all
</head>
<body>
<header>
<h1><a href="index.php">Logo</a></h1>
<nav>
<ul>
<li class="active"><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</nav><!-- end: nav -->
</header><!-- end: #banner -->
<p>Test HTML4.x-element</p>
<?php echo 'Hello'; ?>
</body>
</html>
Then renamed it to index.php and copied into H:\Web
I restarted the Apache server so it recognised the changes in the httpd.conf file and then when I went to
http://localhost/in my browser and I see the correct result of the html5.
So the problem is not related to your changes to the conf file or how the index.php is being handled by the server and the browser but rather the issue is... well I can only guess as I can't reproduce your issue.
The above post is to show that your index.php file does work in a default 1.7.4 installation so you will have to investigate further this issue.
Are there any clues in the \xampp\apache\logs\error.log file or even the access.log file?