really weird problem

From: Date: Thu, 14 Feb 2002 19:15:03 +0000
Subject: really weird problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-84796@lists.php.net to get a copy of this message
hi folks, can someone shed some light here? i've got a file called index.php with the following contents: <?php echo "debug output: index.php loaded<br>"; if (is_null($page_name)) $page_name="about"; echo "debug: page name = $page_name<br>"; $nav_array = array ("about => About", "reservations => Reservations", "directions => Directions", "contact => Contact" ); $nav="lnav.inc.php"; $footer="foot.inc.php"; $pic = "$page_name" . "jpg"; $text= "$page_name" . ".txt"; ?> when i call the page, i get no visible output - this is the resulting page source: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> so where the heck are the html tags coming from??? the other weird thing is that a file with just <?php phpinfo(); ?> works fine! any ideas? cheers, jaxon

« previous php.general (#84796) next »