Re: Getting a "unique identifier" for a file

From: Date: Sun, 29 Jan 2006 05:35:20 +0000
Subject: Re: Getting a "unique identifier" for a file
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-26660@lists.php.net to get a copy of this message
Hi back, Manuel Lemos wrote :
Hello, on 01/28/2006 08:31 PM SamuelDr said the following:
Hi ! I'm trying to develop something in PHP. I have a list of file, and I want to know if I can have a unique identifier for each files. What I mean, is: I have my files:
    test.txt
    test2.txt
I would like them to return a unique something... anything...
tempnam ?
No, actually, I do not want to create a new file, I want to associate a certain file to a certain row in a DB. I want to do some windows desktop like web application for active desktop, and want to know if there could be some sort of way to have a unique identifier to each file. I would want this because, take this example in account : I have dowloaded a file, movie1.avi . I delete it. 2 hours later (the wipe in the DB for old file entries is not done) I download another file with the same name. It would be place at the place of the old one ! Maybe by checking the creation date, and the filename, that would be possibkle... only quirks : if you rename the file not from the web interface... it would place itself like a new icon.

« previous php.windows (#26660) next »