Someone
public php v1 · immutablehey $final = "ABCDEFHGSAOISUIOUEUIOSPOAFMCOIU7892390843897"; $random_ = ""; $quit = false; while($quit == false) { // If quit is false as it is first loop for($i = 0; $i < 7; $i++) // lets loop from i to 7 $random_ .= $final[rand(0,strlen($final))]; // and generate some cool random phrase if(!file_exists($path.$random_)) $quit = true; // now when random phrase is completed then check if it exists, .. it shouldnt exist so lets change quit to true and it should quit the loop }