Date: 10/31/02
- Next message: ed <email protected>: "RE: [PHP] number_format question"
- Previous message: John W. Holmes: "RE: [PHP] PHP - Internal linking in a page"
- In reply to: Edward Peloke: "[PHP] rename()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
pictures
> to
> the same place as the script and then move it. ALso, if I am not sure
of
> 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
- Next message: ed <email protected>: "RE: [PHP] number_format question"
- Previous message: John W. Holmes: "RE: [PHP] PHP - Internal linking in a page"
- In reply to: Edward Peloke: "[PHP] rename()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

