Php4 to Php5 Conversion

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
stoggafu
Forum Newbie
Posts: 5
Joined: Sun Jan 04, 2009 5:17 am

Php4 to Php5 Conversion

Post by stoggafu »

Fixed thanks
Last edited by stoggafu on Wed Aug 05, 2009 12:16 am, edited 1 time in total.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Php4 to Php5 Conversion

Post by requinix »

Ugh. You try to figure it out first, okay?

Turn up error_reporting all the way, turn on display_errors, and see if you get any messages.

Code: Select all

// top of the script:
error_reporting(E_ALL|E_STRICT);
ini_set("display_errors", 1);
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Php4 to Php5 Conversion

Post by Chris Corbyn »

Almost certainly register_globals I'd say. I don't see a single use of a superglobal in the script ;)

http://au2.php.net/register_globals
wkuzma
Forum Newbie
Posts: 1
Joined: Fri Jan 30, 2009 4:32 pm

Re: Php4 to Php5 Conversion

Post by wkuzma »

I tested your script on my server and got it to work by changing the port from 28941 to 28960
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Php4 to Php5 Conversion

Post by Benjamin »

It's also using short tags :(
Citizen
Forum Contributor
Posts: 300
Joined: Wed Jul 20, 2005 10:23 am

Re: Php4 to Php5 Conversion

Post by Citizen »

Just as a tip to add on to what others are saying, perhaps try to use some switches instead of long elseif statements. Not that that has anything to do with compatibility :)
Post Reply