Hi, I found this script:
<?php
$pages = array('xyz.html','123.html');
$i = rand(0, count($pages) - 1);
include($pages[$i]);
?>
which I have saved as rotate.php
The script is supposed to enable rotating between the content of two pages on my home page.
When I add it via
<!--#include virtual="rotate.php" -->
on my home page it works fine, but it causes a gap of at least 25px between the header above and where the script generated content starts.
When I replace the include with something else it lines up just fine. I also have other php includes on the page that line up.
Next thing I tried is to put a negative margin in to move it up, which works fine in IE8, FF and Safari, but when I look at it in Opera it's now 25px to high ;-(
So I looked for "php include gap" on the web and ran into some sites that talk about BOM being an issue.
I also noticed that when I look at my page with the included rotator.php on lynx it shows an upside down question mark where the gap is.
Is there anything in the rotator script I posted above that could be causing this? Btw, in case it matters, the doc is xhtml strict and utf-8 in Expression Web 2 with BOM turned off.
Thank you