Hi Guys,
I have a php password generator script, it worked find to produce the desired password string but once I moved my whole site to a different provider it now wont show the password.
Any help would be great, I can’t see what its not doing.
Below is the actual script. AAAaaahhhhhhhhhhhhhh
<?php if (!empty($str)) { $str=strtolower($str); $cnt=1; $pw1=$str[strlen($str)-$cnt]; $cnt=$cnt+2; $pw2=$str[strlen($str)-$cnt]; if ($pw2==" ") { $cnt++; $pw2=$str[strlen($str)-$cnt]; } $cnt=$cnt+2; $pw3=$str[strlen($str)-$cnt]; if ($pw3==" ") { $cnt++; $pw3=$str[strlen($str)-$cnt]; } $cnt=$cnt+2; $pw4=$str[strlen($str)-$cnt]; if ($pw4==" ") { $cnt++; $pw4=$str[strlen($str)-$cnt]; } $names = explode(" ", $str); $first=$names[1]; $last=$names[0]; $pw5=(ord ($first[0])-98); $pw6=(ord($last[0])-98); $pw=$pw1.$pw3.$pw5.$pw2.$pw4.$pw6; } ?> LCS
|