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

Posted by Jerry Stuckle on 01/14/08 01:50

thib´ wrote:
> 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).
>

Yep, it's a minor annoyance, but I can understand it. Maybe this
restriction will be removed some day when they completely get rid of
register_globals :-)

> 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).
>

Probably could, but I personally don't like it. But then I always have
a name for anything I put in the $_SESSION variable anyway, so I can get
it back easily.

> Not talking about portability, of course.
>
> Thanks for making me discovering it out ;).
>
> -thib´
>


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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