Hi I am a newbie and currently using SAMS's PHP, mySQL and Apache all in one 3rd edition. I am using Apache 2.058, PHP 5.1.4. The sams book says this is suppose to work
<?php
$life=42;
function meaningOfLife() {
global $life;
echo "The meaning of life is ".$life;
}
meaningOfLife();
?>
but all I am getting displayed in the browser is "The meaning of life is "