Need o "turn on" global variable capability?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
katkat
Forum Newbie
Posts: 23
Joined: Tue Mar 03, 2009 9:50 pm

Need o "turn on" global variable capability?

Post by katkat »

I have an array defined as a global variable. I have defined it at the very beginning of the main program and first thing in all the functions that use this array. However, the array does not keep it's data after leaving the function that builds it. In doing more research, I ran across this:

"When we submit a form or pass variables by query sting or read from Cookies the variables will be available by default if the register_globals is set ON in php.ini file."

Do I need to have something set on my system in order to use the global function?
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: Need o "turn on" global variable capability?

Post by panic! »

Post your code so we can help further understand your problem
Post Reply