Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $uploaddir = "temp";
- if (copy($_FILES["filename"]["tmp_name"], "temp/" . $_FILES["filename"]["name"]))
- {
- echo("Файл успешно загружен");
- echo ("Ваш файл успешно загружен <a href='" . $uploaddir . basename($_FILES ['file']['name']) . "'>here</a>.");
- }
- else
- {
- echo("Ошибка загрузки файла");
- }
- echo("Ваш файл успешно загружен <a href='" . $uploaddir . basename($_FILES['file']['name']) . "'>here</a>.");
- <IfModule mod_headers.c>
- Header set Content-Disposition attachment
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement