OK, I'm developing a website with PHP Version 5.2.8 and I came across a strange bug (?) with using the import function of PHP. Everything's working fine for Firefox but for Internet Explorer, Safari and Google Chrome, it gives me a black background and nothing else. When I tried viewing the code, it appears as it should, as an HTML/PHP page. I mean, the tags are there and so are the other stuff.
Code: Select all
<?php
$page_title = "About Us";
include('includes/header.html');
include('includes/index_leftlinks.html');
?>
<div id="normal_contents">
<?php
include('editables/about_us.html');
?>
</div>
<?php
include('includes/footer.html');
?>
If I don't put the about_us.html to where it should be (according to the code above), the page will show and so will the PHP errors about file not found and stuff. If it points correctly, it will show a blank page with black background. And for some strange reason, it only affects the inclusion for the about_us.html. Also, I tried including a text file or an html file, it does not matter, it still does not show anything.
The about_us.html is a simple file starting with a few comments about something and then the text/html itself.
EDIT: Removing the comments from the included file made it work, but I don't know why.