Read this through: http://www.php.net/manual/en/features.file-upload.php Consider then: http://www.php.net/manual/en/function.is-uploaded-file.php After that read: http://www.php.net/manual/en/function.move-uploaded-file.php
and then do it like that: -upload form -check if user has uploaded a file (he could have sent an empty form) -check what extension is needed (.jpg, .gif or whatever) -move_uploaded_file($userfile, "Your/Directory/".time().$extension) hope this helps stefan rusterholz ----- Original Message ----- From: "Philip J. Newman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 24, 2002 9:47 AM Subject: [PHP] Whats the best way. Whats the best way that I can let users upload single .jpeg and gif files, renaming then with a time stamp? Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]