On Thu, 2002-02-14 at 11:15, Jaxon wrote:
> 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>

Dunno--are you using IE? IIRC this is what IE does when it doesn't get
any data from the browser. IE likes to present you with information
other than what was really sent, especially in error conditions, so it
suck to develop with. Try telneting to your web server and see what
output you get.
 
> 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?

On an unrelated note, check this: 

> $nav_array = array ("about => About",
>                     "reservations => Reservations",
>                     "directions => Directions",
>                     "contact => Contact"
>                     );

I doubt that this does what you expect. ;) I could be wrong, but I bet
you meant:

> $nav_array = array ("about" => "About",
>                     "reservations" => "Reservations",
>                     "directions" => "Directions",
>                     "contact" => "Contact"
>                     );


Torben

> cheers,
> jaxon

-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to