> -----Original Message-----
> From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
> Sent: 03 July 2002 20:58
> 
> Still working on the script. Here what I found out so far. 
> Why does the
> example #1 work and example #2 doesn't?
> 
> Example #1
> 
> Page 1
> 
> $_SESSION[0] = "Zero";
> 
> $_SESSION[1] = "One";

[snip]

Actually, I'm amazed either of your examples work correctly, since numeric
session variable names aren't supported (see bug report 17122 at
http://bugs.php.net/bug.php?id=17122.  As the $_SESSION indexes you use
indeed have the potential to be actual variable names (if register_globals
is turned on), they must themselves be valid PHP variable names.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to