Read this:

  Variables from outside PHP:
  http://www.php.net/manual/en/language.variables.external.php

Some notes:

  a) Know your register_globals directive.
  b) register_globals defaults to off as of PHP 4.2.0.
  c) It's preferred not to rely on register_globals being on.
  d) Autoglobals, such as $_GET, became available in PHP 4.1.0.
  e) register_globals can be changed in php.ini or .htaccess
     but not ini_set().
  f) Many older scripts assume register_globals = on.
  g) This change is huge in the PHP world.
  h) register_globals affects web server vars too, so for
     example, $DOCUMENT_ROOT won't exist if it's off, 
     $_SERVER['DOCUMENT_ROOT'].  Same for PHP_SELF, etc.
  i) $_REQUEST can be useful, import_request_variables() too.

See also: 

  http://www.php.net/globals
  http://www.php.net/variables.predefined

Regards,
Philip Olson

On Wed, 30 Oct 2002, Manuel Jenne wrote:

> Hi,
>  
> I've just installed php 4.2.3 and wonder why I can't submit an variable
> over url.
>  
> Example:
>  
> My Script:
> Test.php
>  
> <?
> echo $tmp;
> ?>
>  
> My URL:
> www.some.domain/test.php?tmp=5
>  
> My result:
>  
> NOTHING !!!
>  
> Where is the error?
>  
> P.S. phpmyadmin run ok.
>  
>  
> Thanx
>  
> Manuel
> 


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

Reply via email to