Hallo,
while(file_exists($datei)) {
$rand = rand(10000,99999);
$datei = "themen/$rand.txt";
}
?>
Ist natürlich falsch. Blöder Flüchtigkeitsfehler.
So ist es richtg:
while(!file_exists($datei)) {
mfg bonehunter
Hallo,
while(file_exists($datei)) {
$rand = rand(10000,99999);
$datei = "themen/$rand.txt";
}
?>
Ist natürlich falsch. Blöder Flüchtigkeitsfehler.
So ist es richtg:
while(!file_exists($datei)) {
mfg bonehunter