[PHP] Re: passing arrays to a session-variable

2003-03-12 Thread Dave Myron
> // method 1 > $_SESSION['array1'] = array("item1", "item2"); > > // method 2 > session_register("array2"); > $array2 = array("itemA", "itemB"); > > header ("Content-type: text/html"); > > echo $array1[0]. ""; > echo $array2[0]; > ?> > Well, you're not assigning anything to $array1 (assuming

[PHP] Re: Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-12 Thread Dave Myron
> Warning: Unknown(): Your script possibly relies on a session side-effect > which existed until PHP 4.2.3. Please be advised that the session extension > does not consider global variables as a source of data, unless > register_globals is enabled. You can disable this functionality and this >