RE: [PHP] Problems upgrading PHP..
php.ini didn't exist before apparently on this server I'm on.. or rather, it was a 0 byte file. Thanks, Rasmus. Chad -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 2:58 PM To: Chad Day Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Problems upgrading PHP.. Turn on register_globals in your php.ini file. This shouldn't have changed in a simple upgrade, unless you didn't have a php.ini file before, or you forgot to compile PHP to find your existing php.ini file. -Rasmus On Thu, 2 May 2002, Chad Day wrote: So I'm trying to upgrade PHP from 4.0.1 to 4.2.0 on a box I have that had Apache 1.3.12 preinstalled, the source isn't on the box. mod_so is installed, so I just grabbed the new PHP tarball, unzipped it in /usr/local, and started compiling with the options I want, successfully built it, overwrote the old libphp4.so with the new one created, copied over the php.ini file with the new one, and restarted. It loads up fine, but sessions don't seem to work -at all-. Even variables I tack onto the end of URLs seem to get lost, which renders just about everything I've done in PHP inoperable, it just seems to lose these variables or not keep track of them to begin with. What did I do wrong? Chad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problems upgrading PHP..
Well, that worked for variable tracking, but MySQL seems to have been broken in the process.. or rather, PHP accessing it.. Warning: MySQL: Unable to save result set in /usr/local/www/vhosts/bangable.com/htdocs/forums/admin/db_mysql.php on line 92 If I do a phpinfo();, my PHP configure line reads: './configure' '--with-mysql' '--with-apxs' but I know I did ./configure --with-mysql=/usr/local --with-apxs=/mypathtoapxs etc etc .. Still really confused.. Chad -Original Message- From: Chad Day [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 2:52 PM To: Rasmus Lerdorf Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Problems upgrading PHP.. php.ini didn't exist before apparently on this server I'm on.. or rather, it was a 0 byte file. Thanks, Rasmus. Chad -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 2:58 PM To: Chad Day Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Problems upgrading PHP.. Turn on register_globals in your php.ini file. This shouldn't have changed in a simple upgrade, unless you didn't have a php.ini file before, or you forgot to compile PHP to find your existing php.ini file. -Rasmus On Thu, 2 May 2002, Chad Day wrote: So I'm trying to upgrade PHP from 4.0.1 to 4.2.0 on a box I have that had Apache 1.3.12 preinstalled, the source isn't on the box. mod_so is installed, so I just grabbed the new PHP tarball, unzipped it in /usr/local, and started compiling with the options I want, successfully built it, overwrote the old libphp4.so with the new one created, copied over the php.ini file with the new one, and restarted. It loads up fine, but sessions don't seem to work -at all-. Even variables I tack onto the end of URLs seem to get lost, which renders just about everything I've done in PHP inoperable, it just seems to lose these variables or not keep track of them to begin with. What did I do wrong? Chad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problems upgrading PHP..
Is it showing the right build date? The configure switches should match what you used. -R On Thu, 2 May 2002, Chad Day wrote: Well, that worked for variable tracking, but MySQL seems to have been broken in the process.. or rather, PHP accessing it.. Warning: MySQL: Unable to save result set in /usr/local/www/vhosts/bangable.com/htdocs/forums/admin/db_mysql.php on line 92 If I do a phpinfo();, my PHP configure line reads: './configure' '--with-mysql' '--with-apxs' but I know I did ./configure --with-mysql=/usr/local --with-apxs=/mypathtoapxs etc etc .. Still really confused.. Chad -Original Message- From: Chad Day [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 2:52 PM To: Rasmus Lerdorf Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Problems upgrading PHP.. php.ini didn't exist before apparently on this server I'm on.. or rather, it was a 0 byte file. Thanks, Rasmus. Chad -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 2:58 PM To: Chad Day Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Problems upgrading PHP.. Turn on register_globals in your php.ini file. This shouldn't have changed in a simple upgrade, unless you didn't have a php.ini file before, or you forgot to compile PHP to find your existing php.ini file. -Rasmus On Thu, 2 May 2002, Chad Day wrote: So I'm trying to upgrade PHP from 4.0.1 to 4.2.0 on a box I have that had Apache 1.3.12 preinstalled, the source isn't on the box. mod_so is installed, so I just grabbed the new PHP tarball, unzipped it in /usr/local, and started compiling with the options I want, successfully built it, overwrote the old libphp4.so with the new one created, copied over the php.ini file with the new one, and restarted. It loads up fine, but sessions don't seem to work -at all-. Even variables I tack onto the end of URLs seem to get lost, which renders just about everything I've done in PHP inoperable, it just seems to lose these variables or not keep track of them to begin with. What did I do wrong? Chad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problems upgrading PHP..
What did I do wrong? You didn't read the documentation on the program you just loaded. The change log and features page, etc, all talk about the changes in PHP and what you need to use to access session variables and get/post variables. Register_globals is off by default, and there are new super-global arrays. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php