[Pugged] sessions in includes
The Tollersons
ciapug@ciapug.org
Sun, 2 Feb 2003 23:04:54 -0600
I Finally figured this out everyone:
You cannot pass variables back and forth between includes if you use full
paths. It has to be a local call when you do the include statement. That
fixed it.
Sheesh
Angie :)
----- Original Message -----
From: <vanish@dreamscapevisionery.com>
To: <ciapug@ciapug.org>
Sent: Tuesday, January 21, 2003 2:07 PM
Subject: Re: [Pugged] sessions in includes
> Sorry for the severe snipping below. Yes, that is in php.ini. I would
strongly
> encourage you to use the new variables for post and get instead of turning
on
> register_globals. It's a simple conversion, promotes bett coding habits,
and
> doesn't compromise your security.
>
> Say you have form fields you would normally retrieve as $name $address and
> $zip.
>
> It's still easy to snag them with register_globals off by using the newer
> variables thusly:
>
> $_POST['name'] $_POST['address'] and $_POST['zip']
>
> Use $_GET if your method is get instead of post. Yeah, it's a little more
> typing, but at the same time more legible to another developer coming into
the
> project after you, and just good, sensible code. There's no mistaking
where
> those variables were set.
>
> Might just be me, but then the PHP group made this behavior default, so I
> don't think I'm alone in preferring it. ;)
>
> Chris Van Cleve
>
> Quoting Angie Tollerson <tollerson@alliancetechnologies.net>:
>
> > Hmmm,
> > is that setting in php.ini? Becaues I don't have access to that, this is
> > hosted by an outside party in Canada.
> > Angie
> >
> >
> > Try this setting and see if it works for you:
> >
> > register_globals = On
>
> _______________________________________________
> Ciapug mailing list
> Ciapug@ciapug.org
> http://cialug.org/mailman/listinfo/ciapug
>