The php directive track_vars is deprecated and is always 
on.  You appear to be referring to the register_globals 
directive though, which is a hot topic these days in the 
world of PHP.

If register_globals = on, then $text will exist in your 
example (register_globals will create it).  Otherwise 
it won't exist automagically but will be available in 
$_GET and $HTTP_GET_VARS, as well as in $_REQUEST. Also, 
extract() or import_request_variables() can create them 
if you want.

Try this:

  print $_GET['text'];

Read about predefined variables, superglobals, and 
register_globals in the PHP manual.

Philip Olson

On Wed, 22 May 2002, [Windows-1252] Johan Ekström wrote:

> 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 :
> 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] 

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to