mkdir ('users/'.$username); $sourcefile = 'users/'.$username.'/test.html'; $file=fopen($sourcefile,'a'); fwrite($file,'deze user bestaat nu'); fclose($file);