You are here: Re: How unique is temporary file names (from file upload)? « PHP Programming Language « IT news, forums, messages
Re: How unique is temporary file names (from file upload)?

Posted by radmission05 on 01/12/08 14:25

On Jan 10, 7:56 am, Mikhail Kovalev <mikhail_kova...@mail.ru> wrote:
> I'm storing all uploaded files in one directory -- with the same
> temporary names they are given by PHP. I do so because I don't want an
> uploaded file to overwrite an already exisiting one, so I need to know
> whether these names are unique only per session and can reappear at a
> different time, or are they unique for every upload... ever?
>
> Thanks!=)
>
> mvh
> M. K.

why bother with temp files, it will be deleted on cleaning. so it
maybeor or it wont duplicate, and will not overwrite another one.
to sure it wont, try to copy that on other folder, rename it with the
random + date + time filename so it will be unique. time is unique,
the date yesterday will not be the date for tommorow.. but the problem
is, if they reset or change their server time. Thats why i put random
(11 chars and numbers).

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация