I'm trying to include a small script I've written which calls main.inc.php in an html file via "include virtual" in Apache. But for just this script I only get garbage unless I remove the call to main.inc.php or print something above the call to main.inc.php. The script works perfectly when run stand-alone, so does any other script I've tried.
Does anyone know what my problem is and what I can do about it? It works at the moment, but it is a bit annoying to have to print something above the require.