You are here: Re: variables not recognised « PHP Programming Language « IT news, forums, messages
Re: variables not recognised

Posted by Janwillem Borleffs on 08/28/05 11:28

windandwaves wrote:
> usually, if I have http://www.myurl.com/index.php?x=1 then $x == 1
> in my php file. However, on this ISP it sure did not do this.
>
> Is this
> a. an old version of PHP
> b. a security feature
> c. something else or had to know
>

My guess is that your code relies on register globals being enabled. Since
PHP 4.2 this directive is disabled by default, so $x should be referenced as
$_GET['x'].

See: http://www.php.net/register_globals


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация