bonkers wrote:Ok, I've got fileone.php and it includes variables.php. When trying to access variables from variables.php, when I'm in a self created function (like function foo()), it doesn't print them, but if it's just like, right under the "include 'variables.php';" then it doesn't have a problem, it's not until I start defining functions where it becomes a problemo.
bonkers wrote:no I figured it out, I'm stupid. Never try to program when you're half awake. I read this page but I didn't catch it. Check it out: http://us3.php.net/variable.scope I think I missed it the first time around.
Users browsing this forum: Google [Bot] and 1 guest