3 users responded in this post

Subscribe to this post comment rss or trackback url
User Gravatar
Callum said in June 16th, 2009 at 4:01 pm

Hi there,
Fantastic Tutorial!

How would I go about changing the file names when they’ve been uploaded with PHP??

Maybe through the use of Unix Time codes… or something of the likes?

Thanks in advance,
Callum

User Gravatar
mahesh chari said in June 17th, 2009 at 4:55 pm

In the above example[at line 65],
$upload_directory.$file['name'] replace with
substr(md5(microtime()),0,7).’.’.$ext
it will generate random name

User Gravatar

[...] PHP file upload functionality. [...]