[PHP] file creation date
hello, is it possible, to get the creation date of a file? So even if it's modified, to get the date it was created the first time? thanks Joerg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: **[SPAM]** [PHP] file creation date
[snip] is it possible, to get the creation date of a file? So even if it's modified, to get the date it was created the first time? [/snip] Reading http://www.php.net/stat I don't think so. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: **[SPAM]** [PHP] file creation date
Jay Blanchard wrote: [snip] is it possible, to get the creation date of a file? So even if it's modified, to get the date it was created the first time? [/snip] Reading http://www.php.net/stat I don't think so. Unix filesystems don't store file creation time. And there is no function to retrieve creation time in windows. You might be able to parse the output of dir command. To Jay: Could you please remove **[SPAM]** when replying? Your mail client doesn't send references headers and that spam string breaks threading completely. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] File creation date.
Hi, I want to write a PHP function for delete the files in a directory older than 1800 seconds. Is there any function for it ? If not ... How may I obtain the creation date of a file in PHP ? Greetings. --- Carles Xavier Munyoz Baldó [EMAIL PROTECTED] http://www.unlimitedmail.net/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File creation date.
From: Carles Xavier Munyoz Baldó [EMAIL PROTECTED] I want to write a PHP function for delete the files in a directory older than 1800 seconds. Is there any function for it ? Start here: http://us2.php.net/manual/en/ref.filesystem.php ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File creation date.
Carles -- ...and then Carles Xavier Munyoz Baldó said... % % Hi, Hi! % I want to write a PHP function for delete the files in a directory older than % 1800 seconds. % Is there any function for it ? Not directly. I wouldn't build this into a web script, either (though if you're simply planning to write your system script in php that's fine). I'd run it with cron (say every 20 minutes) no matter what language I used to write it. % % If not ... % How may I obtain the creation date of a file in PHP ? There is a stat() function which should do you nicely. % % Greetings. HTH HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, Science and Health http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
Re: [PHP] File creation date.
From: Carles Xavier Munyoz Baldó [EMAIL PROTECTED] I want to write a PHP function for delete the files in a directory older than 1800 seconds. Is there any function for it ? Read this thread, too: http://www.phparch.com/mailinglists/msg.php?a=701737s=Mike+Migurski+findsp=1 If you can get your hands on a September issue of php|architect, I had a paragraph about this in my Tips 'n Tricks column. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] file creation date
How would you know about a file on someone's system before it was implicitly sent you by user? Take a look at JavaScript, but I doubt there will be a sure solution for it. Nothing is sure with JavaScript except for it's cross-browser incompatibility :) -- Maxim Maletsky [EMAIL PROTECTED] Research and Development [EMAIL PROTECTED] wrote... : Is it possible to get the creation date of a file that is going to be uploaded? I saw a function that returns the file creation date once on the server, but is it possible to get that information from a file that is not yet on the server? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] file creation date
Is it possible to get the creation date of a file that is going to be uploaded? I saw a function that returns the file creation date once on the server, but is it possible to get that information from a file that is not yet on the server? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] file creation date
Is it possible to get the creation date of a file that is going to be uploaded? I saw a function that returns the file creation date once on the server, but is it possible to get that information from a file that is not yet on the server? Not with PHP. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php