Re: problem with code between 4.3.4rc1 & upgrading to php 4.4.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 09, 2006 at 04:04:49PM -0500, Brent wrote:
> Hello,
> About 2 years ago i setup   Apache/1.3.28 (Unix) PHP/4.3.4RC1
> mod_ssl/2.8.15 OpenSSL/0.9.7c  and mysql on BSD Unix and did up some
> simple php enabled web pages to add / remove /edit / search  entries to
> a 1 table mysql database to keep track of abuse complaints for my company.
> 
> This week Ive had to migrate all this to new Solaris 10 box which i
> installed Apache/1.3.34 (Unix) PHP/4.4.2 mod_ssl/2.8.25 OpenSSL/0.9.8a
> ...
> ??   I can submit some of the code for everyone to look at  ..  Any help
> is greatly appreciated

This sounds like the old version had register_globals [1] set to on.
You'll want to change your code [2] so it works with it off, like:

  $_GET['variable']; or
  $_POST['variable'];

It is strongly advisable to keep it off.

[1] http://php.net/register_globals
[2] http://php.net/language.variables.predefined

Curt.
-- 
cat .signature: No such file or directory

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux