You are here: Re: How to call the session variable? « PHP Programming Language « IT news, forums, messages
Re: How to call the session variable?

Posted by Jerry Stuckle on 01/14/08 19:20

Kurda Yon wrote:
>> Anyway... This happens, when register_globals
>> (http://de.php.net/register_globals) is active (see first comment), which
>> is also a sure sign, that you should really change your hoster because of
>> incompetence.
> Will I be able to use global variables after I turn off the
> register_globals? In my code I use the global variables extensively,
> and I would not like to rewrite everything. By the way, way it is so
> bad if the register_global is turned on? I do not see any problems in
> the effect that I have described in my first post.
>

Global variables (which you shouldn't use) will still work.
register_globals just affects $_SESSION, $_COOKIE, $_GET and $_POST.

And yes, you should think about rewriting your code to get rid of global
variables. They make troubleshooting your code and changes much harder.

--
==================
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

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