Re: [PHP] Re: register_globals odd behaviour?

2001-08-22 Thread Sean C. McCarthy
Hi, Internally I use variables but I use the array to update the value since I have problems with the scope inside classes. So I update the value on the array just at the end of the script by registering an update function with register_shutdown_function(). What is the reason that I should not

Re: [PHP] Re: register_globals odd behaviour?

2001-08-22 Thread Richard Lynch
What is the reason that I should not use the array? Is there any problem doing it that way? They array is simply not designed for you to use as if it were your variable. What you want to do is this: ?php # Beginning of script: session_start(); session_register('count');

[PHP] Re: register_globals odd behaviour?

2001-08-21 Thread Richard Lynch
I think you should still use $count++ The array is just there for you to *READ* data, not to alter it. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: