Colossus
06-16-2003, 05:59 PM
<title>Password Generator</title>
</head>
<body>
<?php
$String="This is the text which will be encrypted so that we may create random and secure passwords!";
$Length=8; ##Change this value to indicate how long your passwords should be. There is a 32 character limit. ##
$String=md5($String)
$StringLength= strlen($String);
srand ((double) microtime() * 1000000
$Begin=rand(0,($StringLength-$Length-1));
## Pick an arbitrary starting point. ##
$Password=substr($String, $Begin, $Length);
$TotalCost= $Number*$Bud;
print ("Your recommended password is: <P><BIG>$Password</BIG>\n");
?>
</body>
</html>
I get an unexpected T_VARIABLE on line 11, what have I done wrong?
Thanks.
</head>
<body>
<?php
$String="This is the text which will be encrypted so that we may create random and secure passwords!";
$Length=8; ##Change this value to indicate how long your passwords should be. There is a 32 character limit. ##
$String=md5($String)
$StringLength= strlen($String);
srand ((double) microtime() * 1000000
$Begin=rand(0,($StringLength-$Length-1));
## Pick an arbitrary starting point. ##
$Password=substr($String, $Begin, $Length);
$TotalCost= $Number*$Bud;
print ("Your recommended password is: <P><BIG>$Password</BIG>\n");
?>
</body>
</html>
I get an unexpected T_VARIABLE on line 11, what have I done wrong?
Thanks.