Re: [PHP] Re: register_globals odd behaviour?

2001-08-23 Thread Sean C. McCarthy
Hi, Actually is what I do but since register global is off, I do: # Beginning of script: session_start(); session_register('count'); $sess_object->count = $HTTP_SESSION_VARS['count']; . . . # In your class methods: class ... var $count

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: You are changing $HTTP_SESSION_VARS['count'], but I'm betting the *GLOBAL* variable $count

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 u