On Sun, Jan 13, 2002 at 10:52:32PM +0100, Gabor Hojtsy wrote :
> > > The question is to check for $_GET [isset($_GET)] or phpversion()
> > > > 4.1.0 [version_compare() is the function for that thing :)].
> > >
> > > Well, you are right, that if we are < 4.1.0, you can do:
> > >
> > > fake.php?_
> > The question is to check for $_GET [isset($_GET)] or phpversion()
> > > 4.1.0 [version_compare() is the function for that thing :)].
> >
> > Well, you are right, that if we are < 4.1.0, you can do:
> >
> > fake.php?_GET[a]=b&_GET[c]=d
> >
> > so my idea may not be that good :)
>
> Yep
> > >
> > session_start();
> > if(ini_get('register_globals') AND !isset($session_global_var)){
> > $session_global_var = array();
> > }
> >
> > session_register('session_global_var');
> >
> > if(ini_get('register_globals')){
> > $SESSION =& $session_global_var;
> > }else{
> > $SESSION =& $HTTP_S
On Sun, Jan 13, 2002 at 10:29:00PM +0100, Gabor Hojtsy wrote :
> > > > > I mean, you could check php_version() and stick in some extract()
> calls
> > > > > for older versions wherever you use the superglobals, but that seems
> > > > > rather ugly.
> > > >
> > > > Some really want it, let's defin
> > > > I mean, you could check php_version() and stick in some extract()
calls
> > > > for older versions wherever you use the superglobals, but that seems
> > > > rather ugly.
> > >
> > > Some really want it, let's define the most efficient/least ugly types
of
> > > hacks :) For example with ge
>
> session_start();
> if(ini_get('register_globals') AND !isset($session_global_var)){
> $session_global_var = array();
> }
>
> session_register('session_global_var');
>
> if(ini_get('register_globals')){
> $SESSION =& $session_global_var;
> }else{
> $SESSION =& $HTTP_SESSION_VARS['session_gl