NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP Versions and GLOBALS

Hans Zaunere zaunere at yahoo.com
Fri Jun 21 09:19:21 EDT 2002


--- Jeremy Hise <jhise at linuxforbusiness.org> wrote:
> Hi All:
> 
> I have an app that runs fine on php4.0.4 but acts all funky on
> php4.0.6.
> Places in .4 that use $GLOBALS[varname] suddenly require that I do
> $GLOBALS[HTTP_POST_VARS][varname].

This is certainly a register_globals and/or track_vars issue.

Also, never use, for example, $_POST[varname]   but rather 
$_POST['varname']

Take a look at http://www.php.net/manual/en/language.types.array.php
under the heading "Array do's and don'ts"

HZ


> 
> I think I remember something about this but I'm not sure and I can't
> really find anything on the php site.
> 
> Do any of you know what the story is with regards to how GLOBALS work
> between these versions?
> 
> Thank you!
> 
> Jeremy 
> 
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



More information about the talk mailing list