Why does the following code always return me to a 404 error page. Afte the file is created, I want it to continue on with the script if ($config['bypass_regconfirm'] == 'Y') { $active=1; $actkey = 'Confirmed'; $conf="1"; mkdir("members/$username", 0700); $File = "members/index.txt"; $Handle = fopen($File, 'w'); $Data = "File successfully created\n"; fwrite($Handle, $Data); fclose($Handle); } else { $actkey = md5( $email . time() ); }