<?
#########CHECK FOR EXISTING USERS#########
if (file_exists(brugere . "/" . $brugernavn . "/" .$brugernavn . ".txt" )) {
header("Location: http://www.easysms.dk/user_exists");
} else {
mkdir("brugere/$brugernavn", 0777);
}
?>
What's wrong with this code??
I just can't figure it out.
It doesn't redirect to "http://www.easysms.dk/user_exists"!!
If the file exists, the script just overwrite it with the new data.