PX : code

randomstring by Christopher Heschong
Download this code


<?
 Function randomstring($len) {
  srand(date("s"));
  while($i<$len) {
   $str.=chr((rand()%26)+97);
   $i++;
  }
  return $str;
 }
?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.