Hey guys, just after a bit of help with a script i'm building...
Basically its an image upload type script... the details of the file being uploaded are written to a mysql database and the file is copied to the server.
The bit i want help with is renaming the file once its uploaded to the server.
My script for saving the file looks like this:
move_uploaded_file($_FILES["link"]["tmp_name"],
"library/" . $_FILES["link"]["name"]);
Instead if the file being retaining its original name, i want to instead give it a name stored in a variable ($thisida).
I do need to maintain the extention however.
Can anyone help me out with this? 🙂