I'm learning php out of a book. I'm a little confused by the following script given in the book.....for starters, it doesn't work! - line 11 is giving me a error (which is the srand line). I'm also thinking that $string and $length are variables....right??
<html>
<head>
<title>Password Generator</title>
<body>
<?php
$string = "This is the text which will be encrypted so that we may create random and
secure passwords!";
$length = 8;
$string = md5($string);
$stringlength = strlen($string)
srand ((double) microtime() * 1000000);
$begin = rand(0,($stringlength-$length-1));
$password = sunstr($string, $begin, length);
print ("Your recommended password is:<p><big>$password</big></b>\n");
?>
</body>
</html>