Blank page using php5
Status: Beta
Brought to you by:
blakewatters
The script does not seem to be working with php5 is
their a fix that may cure this? (that does not involve
using php4)
i've used this script in the past and i do like it alot
and would like it to work with php5!
WHAT IVE DONE (to try and cure it):
1) i commented out the bit that checks to see what
version of php your using.
Logged In: YES
user_id=955444
I got the same error.
I check my error log of php and:
[02-Oct-2005 16:07:14] PHP Parse error: syntax error,
unexpected T_PRIVATE in
C:\WebServ\wwwroot\htdocs\netjuke\lib\inc-common.php on line 675
So I check the file and add a "$" before the PRIVATE thing
on line 675.
Try again and my page wasn't blank anymore, it's said:
Fatal error : You must upgrade your installation of PHP from
5.0.2 to 4.1.0 or higher.
I thing that is not normal.
Logged In: NO
This is because Netjuke uses the php-mysql-functions that
are no longer compatible with MySQL >= 5.0. You should use a
4.x MySQL server for netjuke.
Logged In: YES
user_id=1188597
Originator: NO
private is now a reserved word in PHP5.
change all of the define("PRIVATE", whatever) to define("NJPRIVATE", whatever). Change test in lib/inc-common.php of PRIVATE == true to NJPRIVATE == true.
Change play.php call to "header()" to 2 calls to header(), one for each of the headers being sent.
Bingo - PHP5 and it works.