Php4 to Php5 Conversion
Moderator: General Moderators
Php4 to Php5 Conversion
Fixed thanks
Last edited by stoggafu on Wed Aug 05, 2009 12:16 am, edited 1 time in total.
Re: Php4 to Php5 Conversion
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.
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);- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Php4 to Php5 Conversion
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
http://au2.php.net/register_globals
Re: Php4 to Php5 Conversion
I tested your script on my server and got it to work by changing the port from 28941 to 28960
Re: Php4 to Php5 Conversion
It's also using short tags 
Re: Php4 to Php5 Conversion
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 