To help clear things up for a few:

> The globals that PHP sets up have changed since since PHP 4.2.x
> See: http://www.php.net/release_4_2_0.php

Note, this is only the default value for the fully 
configurable PHP directive register_globals.  Please 
read:

  http://www.php.net/manual/en/security.registerglobals.php

Also, note that global and register_globals are different 
topics all together.  And that the track_vars directive 
hasn't been useful since PHP 4.0.2.  It's always on now.

> You can turn on register_globals in the php.ini file but it is
> recommended to use the more secure $_GET['test'] type variables.

Using superglobals is not secure, but it can be nice to know 
where your data is coming from so if you expect a cookie 
variable, a get variable won't take its place.  Like if you 
have a cookie named 'foo', with register_globals one might 
use $foo, but if the cookie does not exist a user could 
pass a get variable $foo through the url ... Just a simple 
example :)

The following post might help clear things up regarding 
superglobals, variable scope, and register_globals:

  http://marc.theaimsgroup.com/?l=php-general&m=102036870428992


Regards,
Philip Olson


> -----Original Message-----
> From: Johan Ekström [mailto:[EMAIL PROTECTED]] 
> Sent: 22 May 2002 16:39
> To: PHP Windows Discussion List; PHP General Discussion List
> Subject: [PHP] Problem : track_vars stopped working.
> 
> 
> Okay, mystery to me, when I installed PHP 4.2.1 on Apache 2.0.35, the
> track_vars function, stopped working.
> 
> a simple command like, example :
> 
>  file : default.php
> ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
> <?
>   echo("$text");
> ?>
> 
> then I type in the address in ie6, like :
> http://127.0.0.1/default.php?text=this
> 
> but it doesn't show anything. it becomes a blank page instead of echoing
> out "this".
> 
> Now, I thought track_vars was set to "Off" but in php.ini, it stood that
> it always was on. So, now I'm stuck... I'm using the php4apache2.dll
> module, which I suppose may be the problem, but I don't think they would
> have forgotten this function in that file.
> 
> Anyone got any idée's??? I kind of need that function to do multipages.
>       johan ekström [EMAIL PROTECTED] 
>         http://www.dynamicduo.nu/ 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to