Without seeing what's in ad.inc it's hard to tell. I always include like this:
include("ad.php");
to explicitly indicate that the included file is to be interpreted as PHP. Also: you can do a View/Source to see what is being returned from the include like this:
echo("Starting include|||<br>");
include("ad.inc");
echo("<br>|||Ending include<br>);
Dave
===========================================
http://badblue.com
Small footprint P2P web server for Windows,
File-sharing, PHP, wireless apps & more