Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- target_file = $target_dir . time()."_abc.jpg";
- basename($_FILES["files"]["name"]="abc.jpg";
- $target_file = $target_dir . time()."_abc.jpg";
- if (file_exists($target_file)) {
- if (move_uploaded_file($_FILES['files']['tmp_name'], $target_file)) {
- echo "File Uploaded";
- } else {
- echo "File Not Uploaded";
- }
- }
Add Comment
Please, Sign In to add comment