输入banner图图片脚本导航/分类

php生成随机密码函数示例

  1. #生成随机密码
  2. function MakePass($length)
  3. {
  4. $possible = "0123456789!@#$%^&*()_+".
  5. "abcdefghijklmnopqrstuvwxyz".
  6. "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  7. $str = "";
  8. while(strlen($str) < $length)
  9. {
  10. $str .= substr($possible, (rand() % strlen($possible)), 1);
  11. }
  12. return($str);
  13. }