php-windows Digest 29 Jan 2006 05:35:28 -0000 Issue 2876

Topics (messages 26657 through 26660):

Re: Test.php loads, but nothing in Browser
        26657 by: mailbox 19860221

Getting a "unique identifier" for a file
        26658 by: SamuelDr
        26659 by: Manuel Lemos
        26660 by: SamuelDr

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
@Howard

> [...] my guess is that most people write their scripts
> using short tags. So the default setting should be set
> to short. Any reason to keep it set to off?? Security
> Reason??
I do not agree.
Older versions of the php engine (or older system configurations)
could be able to understand "long open tags" only. And no (not insane)
developer on planet earth wants his code to be not executed properly
or ignored as buggy...
As far as I know, there are no security reasons for keeping short tags
off, but, considering what I told you in previous lines, you should
avoid using this technique.

For more informations go to:
http://www.php.net/ini.core#ini.short-open-tag

--- End Message ---
--- Begin Message ---
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...
If I have my first test.txt, and delete it, and put another one, EXACTLY the same file, but after deleting the first, I would like it to return a "new id"

This "id" would be used to pair database entries for each files, but without using an old entry for a new file.

I know it feels abstract, but if you want informations about what I want, ask me !
--- End Message ---
--- Begin Message ---
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 ?

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin 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.
--- End Message ---

Reply via email to