smemamian
شنبه 09 دی 1391, 21:25 عصر
سلام دوستان
کسی می تونه به زبان ساده این قسمت از کد رو معرفی کنه ؟
####### Code Starting #######
if (!$file_name) die("$no_file");
if ($file_size > $max_upload_size) {
die("$to_big_file");
}
if ($allow_file_type == "1") {
if ($type != $allowtype) {
die("$not_correct_file");
}
}
if (file_exists("$upload_directory/$file_name")) {
die("$already_uploaded");
}
@copy($file, "$upload_directory/$file_name") or die("$error_write_file");
# EOF!
echo "<center><b>$thank_you";
?>
کسی می تونه به زبان ساده این قسمت از کد رو معرفی کنه ؟
####### Code Starting #######
if (!$file_name) die("$no_file");
if ($file_size > $max_upload_size) {
die("$to_big_file");
}
if ($allow_file_type == "1") {
if ($type != $allowtype) {
die("$not_correct_file");
}
}
if (file_exists("$upload_directory/$file_name")) {
die("$already_uploaded");
}
@copy($file, "$upload_directory/$file_name") or die("$error_write_file");
# EOF!
echo "<center><b>$thank_you";
?>