can anyone tell me why this doesn't work??
assuming I have these three files:

settings.php is:
<?php $bar="someval"; ?>

page.php is:
        echo "$bar from page.php"; //this works!!!
        include "function.php";

function.php is:
        function foo{
        global $bar;
        echo "$bar from foo"; //this does not work!!!

for some reason the $bar in function foo() doesn't have a value... :(
calling page.php only returns the $bar from page.php

thanks in advance!

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to