[PHP] problem with code between 4.3.4rc1 upgrading to php 4.4.2

2006-02-09 Thread Brent
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
with mysql .  The problem im have is that when i go to search for an
entry through the web interface...it pulls ALL entries in the database
and displays them instead of the ones im searching for.  When i go to
add an entry ...it actually enters a entry to mysql ...but its empty. 
If i try to do an edit on an existing entry ...the form doesnt pull the
existing entries from the database to be edited...Im thinking its
probably something with my syntax that im using is no longer valid with
the new versions of php4. Does anyone have any thoughts or suggestions
??   I can submit some of the code for everyone to look at  ..  Any help
is greatly appreciated

-- 
--
Brent 

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



Re: [PHP] problem with code between 4.3.4rc1 upgrading to php 4.4.2

2006-02-09 Thread Curt Zirzow
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