komisch ich bekomme raus das beide strings die selben wären...


Code:
<?php
session_start();

function GeneratePassword1($length = 4)
{
$char_control  = "";
$chars_for_pw  = "ABCDEFGH%)3§(!$>=_;?\/³#RS&ouml;&Auml;VWXYZ";
$chars_for_pw .= "0123456789";

$chars_for_pw .= "abcdefghijklmnopqrstuvwxyz";
srand((double) microtime() * 1000000);
for($i=0;$i<$length;$i++) {
$number = rand(0, strlen($chars_for_pw));
$char_control .= $chars_for_pw[$number];
}
           
return $char_control;

}

$text=GeneratePassword1();
$_SESSION['crackcode'] = $text;
$text2=$_SESSION['crackcode'];

echo ''.$text.'|'.$text2.'';

?>