ok - i run this site www.nevergetoveryou.net with 700 members and moved servers last night - but on the new server it just wont run as it did before (without any problems)...
the error i get right now is the following:
(see http://www.nevergetoveryou.net/index.php )
Parse error: parse error, unexpected T_STRING in /home/neverget/public_html/include/funcs.php on line 291
ok - here is the part in include/funcs.php:
289 function generatepassword($length){
290 srand((double)microtime()*1000000);
291 $vowels = array("a", "e", "i", "o", "u");
292 $cons = array("b", "c", "d", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "u", "v", "w", "tr", "cr", "br", "fr", "th", "dr", "ch", "ph", "wr", "st", "sp", "sw", "pr", "sl", "cl");
293 $digits = array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
294 $num_vowels = count($vowels);
295 $num_cons = count($cons);
296 $num_digits = count($digits);
297 for($i = 0; $i < $length; $i++){
298 $password .= $cons[rand(0, $num_cons - 1)] . $vowels[rand(0, $num_vowels - 1)] . $digits[rand(0, $num_vowels - 1)];
299 }
300 return substr($password, 0, $length);
301 } //pw generator
302
303
304 ?>
ok - i dont understand THAT first of all...
the next thing i tried was commenting out the whole section from line 289 to 301 with /.../ - but STILL the same error - WHY??? the code shouldnt even be processed???
finally i took the piece of code from line 289 to 301 out all the way and i got the following error:
Parse error: parse error, unexpected $ in /home/neverget/public_html/include/funcs.php on line 291
line 291 was the line with the clocing PHP-tag ( ?> ) then.
so PLEASE can anybody help and give me an explanation whats wrong there??? thae page is still ofline and i have NO idea what to do now...
thanks a lot...
sid