> I am trying to allow the user to upload pictures.  What is the best
way to
> rename them?  If I use the rename function, I have to upload the
> to
> the same place as the script and then move it.  ALso, if I am not sure
> the extension, how can I simply rename it?  Can I do multiple files at
> once?

You can use uniqid() to help make a unique name for the file when you
copy it. You can get the extension of the file from the $_FILE array,
just parse the element that holds the name of the file on the client
computer. You can do this with multiple files or just one. 

---John Holmes...

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to