Re: problem with code between 4.3.4rc1 & upgrading to php 4.4.2
| From: | Curt Zirzow | Date: | Fri, 10 Feb 2006 00:38:06 +0000 |
| Subject: | Re: problem with code between 4.3.4rc1 & upgrading to php 4.4.2 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230181@lists.php.net to get a copy of this message | ||
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