You are here: Re: Use of session variables « PHP Programming Language « IT news, forums, messages
Re: Use of session variables

Posted by Michael Fesser on 01/14/08 13:33

..oO(thib´)

>Peter Pei wrote:
>> string key is fine, I meant u were closer on the number key thing
>
>O-kay
>Did some little search then, and found the logical reason: hellish globals
>strike again. Even if register_global is off, PHP throws this notice simply
>because of variables naming limitations (in this case it cannot start with
>numbers).

Correct.

>As far as we don't register globals, I think we can simply @ignore this
>notice and sleep well (correct me if there's something else).

The notice "Skipping numeric key 0 ..." also means that these variables
are _not_ stored in the session file, hence you cannot ignore it.
Currently $_SESSION acts as an associative array only, so no numeric
keys are allowed.

Micha

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация