Read this through:
Consider then:
After that read:

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]>
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.
Phone: +64 25 6144012

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to