inst-resources/randompass.php
author Neal Gompa <neal@enanocms.org>
Fri, 18 Dec 2009 19:16:05 -0600
changeset 8 af10a4dbafb4
parent 0 67e1cc6cd929
permissions -rw-r--r--
Commenting out plugin component blocks. We aren't using them for anything, and they are currently empty anyway...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     1
<?php
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     2
$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     3
for ( $i = 0; $i < 8; $i++ )
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     4
  echo $chars{ rand(0, strlen($chars)-1) };