$fp = fopen("content/".$file, "wb"); if($fp) { if(fwrite($fp, $_POST['file_c']) && fclose($fp)) home("File $file Successfully Saved!"); else error("Sorry, I couldn't save this file! Please make sure the \"content\" directory and its files are CHMOD to 0777! Error #2"); } else error("Sorry, I couldn't save this file! Please make sure the \"content\" directory and its files are CHMOD to 0777! Error #1");