The file upload code works great! Initially I received an error...something to the effect ... unable to open file or directory...
Then I changed the permissions to 777 and it worked!
How do I change the file name from its original upload source name to something else when it arrives on my server? I'd like to have php generate an incremental name so that I can store the filename in the MYSQL row and use it later as a pointer to the file. Another reason for using a system gen'd name is so that it doesn't conflict with other filenames already stored.
I see that there are two names in the code (i.e., name and tmp_name). I understand that these to names are part of the $_FILE function. Can those two values be changed to a variable (i.e., $name and $tmp_name? I read the PHP manual pertaining to the use of file-uploads but didn't see any syntax conventions. I found the array structure on another php site.
Here's the code segment I'm talking about:
$source_file = $FILES['uploaded_file']['tmp_name'];
$dest_file = $FILES['uploaded_file']['name'];
Regards,
Bill.