Okay,
ich hab die Lösung, das mit crypt($passwort, $kompletter_hash) hat (zumindest bei mir) einfach nicht geklappt. Ich habe jetzt
[CODE]
$salt = explode("$", $hash);
$salt = "$".$salt[1]."$".$salt[2]."$";
if (crypt($password,$salt) == $hash) {
session_start;
echo "geklappt";
}
else {
echo "nicht geklappt";
}
[/CODE]
und das funktioniert wunderbar