From: basos g <ba...@gm...> - 2008-10-09 12:29:00
|
-------- Original-Nachricht -------- > Datum: Wed, 08 Oct 2008 17:27:29 +0200 > Von: Marco Zennaro <mar...@me...> > An: wif...@li... > Betreff: [Wifiadmin-users] Problem with mysql? > Hi! > > Great job with WifiAdmin, thanks. > > I am having trouble installing it on a Voyage linux box. I am using > php4. > > I get the following error: > > Update Step 2 / 2Database Update/Creation > Parse error: syntax error, unexpected T_STRING, expecting > T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/wifiadmin/ > install/update.class.php on line 41 > This is expected as new functionality requiring PHP5 has been included. Back at dev times i couldn't think of a good reason for someone not to update to PHP5 since the 4.x branch support IS discontinued : (from http://www.php.net/downloads.php ) : Support for PHP 4 has been discontinued since 2007-12-31. Please consider upgrading to PHP 5.2. The release below is the last PHP 4 release. The good news are that core functionality is PHP4 compatible as 1)wifiadmin used to comply with php4 and 2)PHP5 is at most php4 compatible.. In addition i'll try to avoid writing PHP4 incobatilble code. Now for your case you could : 1)Write a patch easily (e,g, the affecting file uses OO PHP5 model ,which should be trancripted to PHP4 OO code in order to be OK). 2) Skip the installation scripts for database and : drop your db, use the install/mysql.sql file to create the database as it as explained at the README for "the old manual way" Step 2... As a last notice i would not recommend someone to leave a PHP4 webserver up n running... -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger |