Issues with PHP and upgrades

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
leadacid
Forum Newbie
Posts: 2
Joined: Wed Jun 11, 2003 5:39 pm
Location: Beloit College

Issues with PHP and upgrades

Post by leadacid »

Hey all!

Ok, so we recently (yesterday) upgraded our AIX servers to 5.1L and at the same time, upgraded Apache to 1.3.27, PHP 4.3.2, Perl 5.6.1.0, MySQL 4.0.13, Mod_SSL 2.8.14, Open_SSL 0.9.7b and MM 1.3.0. Now today I got to go around to everyone's offices and see if their personal projects are still working.

Well, all was going good until I came by one guy's place. Aparently his older FormMail.php (Jack's Formmail.php 4.0) script isn't taking the recipiant address which is supposed to be sent to it via a HTML/Java interface.

Since I havn't ever actually programed in PHP and have done very little in both HTML and JavaScript, I have no idea what might be wrong. However, it does look to me that it simply isn't passing the variables correctly between the two files. Sorta like all the problems I had in C++.... But anyways.

So essentially I'd like to know if there are any known issues with all of the programs I listed above working with eachother or whathave you. As far as I can tell, everything else is working just fine, so this is kinda <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> me off. However, if I can tell if it's not my problem, that'd be awesome too.

Thanks for ALL your help guys!
-Steve
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

only guessing but maybe Sticky: Before Post Read: Concerning Passing Variables in PHP 4.2+ is what you should read
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

Your correct, depending upon which version of PHP you were using before and the age of the FromMail script (I not aware of that peticular one) the varibales may be passed the "old style" way.

A quick fix would be to enable the "register_globals" config option in the php.ini (usually in /usr/local/lib/php.ini), but you may have to grep for it.

This was disabled by default as of PHP 4.1 (>) to improve security, and I suggest you fix the issue/s and disable this option.

The more permanent fix is to re-write/upgrade the script (may be one on the original authors site) so that it uses $_POST/$_GET vars (arrays).

Allsorts has changed in the versions you mention and there could be a myriad of other issues that could be quite involved to sort out, you really could do with finding out your previous versions and then look at the change logs on the source/vendors sites.

Good luck.

Regards,
leadacid
Forum Newbie
Posts: 2
Joined: Wed Jun 11, 2003 5:39 pm
Location: Beloit College

Thanks guys!

Post by leadacid »

Thanks for the quick and informative replies!
Hopefully this will take care of my problems, but if not, you'll more than likely be hearing from me again! :-)

Thanks again!
-Steve
Post Reply