I am currently a student at the University of Missouri. Our on campus servers have php enabled, and I have had a lot of success executing php scripts. I installed PHP on my web server at home, and have been having some problems. One of the simple scripts that I have been using on campus for my web site navigation is this:
<?php
$nav;
include ('chunks/header.chunk');
if ($nav = NULL)
include ('chunks/index.chunk');
else
include ('chunks/$nav.chunk');
include ('chunks/footer.chunk');
?>
I then use links such as <a href="index.php?nav=guestbook">Guestbook</a> to change to the guestbook page. When I run this script on my home server, I get an error telling me that $nav is an undefined variable, and nothing works. Everything else seems to work fine. I was wondering if there were some settings that I needed to change in order to make this work. Thanks for the help.