users uploading two identically named files at the same time (not all
/that/ unlikely), and you are using a database table to track
Really? You don't think it's that uncommon? Please give an example as I
can't think of any. Not like that's saying much. :)
I'd say that any time you have an
On Sat, 2004-01-31 at 12:57, Michal Migurski wrote:
users uploading two identically named files at the same time (not all
/that/ unlikely), and you are using a database table to track
Really? You don't think it's that uncommon? Please give an example as I
can't think of any. Not like
Hey,
Nice solution, I think i'll use it.
Thanks.
-Ryan
On 1/31/2004 8:56:02 PM, [EMAIL PROTECTED] wrote:
Ryan A wrote:
Hey all,
I needed to make a simple upload script so users could upload their
images but had a small extra requirment, after searching google,
hotscripts and all the
I used microtime() to differentiate them, but in retrospect it should
have been a no-brainer to use the database primary id to help
differentiate these, since the DB already did all the heavy lifting
involved in ensuring uniqueness.
Even though it seems incredibly unlikely, isn't is safer to
Hey all,
I needed to make a simple upload script so users could upload their images
but had a small extra requirment,
after searching google, hotscripts and all the other usual places and
downloading code, i realized its better to
write the whole damn thing myself, so i did.
Now that the little
Ryan A mailto:[EMAIL PROTECTED]
on Friday, January 30, 2004 10:09 AM said:
common directory (member_pics) so what do you suggest I name the
pictures? eg:
username.jpg?
first_last_name.jpg?
random_number_username.jpg?
how about timestamp_originalfilename.jpg?
Someone uploads
From: Ryan A [EMAIL PROTECTED]
I am having all the pics upload to one
common directory (member_pics) so what do you suggest I name the pictures?
uniqid() and md5() would come in handy here.
Another question related to this, I am restricting the uploaded files to
be
jpg,png and gif for
Ryan A wrote:
Hey all,
I needed to make a simple upload script so users could upload their images
but had a small extra requirment,
after searching google, hotscripts and all the other usual places and
downloading code, i realized its better to
write the whole damn thing myself, so i did.
Now that
, michele.jpg, but again, the same file name on the same
second, what are the odds? --anyone? :)
-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 12:23 PM
To: Ryan A; [EMAIL PROTECTED]
Subject: RE: [PHP] How do you guys do this?
Ryan
PHP Email List mailto:[EMAIL PROTECTED]
on Friday, January 30, 2004 4:41 PM said:
I sure hope that there aren't 2 people uploading breadbox.jpg at the
same second. That'd be too weird! Now maybe if it was a porn site I
could see the same name, tina.jpg, michele.jpg, but again, the same
I sure hope that there aren't 2 people uploading breadbox.jpg at the
same second. That'd be too weird! Now maybe if it was a porn site I
could see the same name, tina.jpg, michele.jpg, but again, the same
file name on the same second, what are the odds? --anyone? :)
You're absolutely
Michal Migurski mailto:[EMAIL PROTECTED]
on Friday, January 30, 2004 5:31 PM said:
users uploading two identically named files at the same time (not all
/that/ unlikely), and you are using a database table to track
Really? You don't think it's that uncommon? Please give an example as I
12 matches
Mail list logo