- function do_upload($upload_dir, $upload_url) {
- $temp_name = $_FILES['userfile']['tmp_name'];
- $file_name = $_FILES['userfile']['name'];
- $file_path = $upload_dir.$file_name;
- //File Name Check
- $message = "Invalid File Name Specified";
- }
- $message = "change permission to 777 failed.";
- $message = ($result)?"$file_name was uploaded successfully." :
- "Something is wrong with uploading the file.";
- }
Code / PHP Snippets / Function: do_upload()
Download as Text : January 6th, 2009
This work is licensed under a