Re: [PHP] File creation date.

2003-11-06 Thread CPT John W. Holmes
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.

2003-11-06 Thread David T-G
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.

2003-11-06 Thread CPT John W. Holmes
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

2002-11-29 Thread Maxim Maletsky
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




RE: [PHP] file creation date

2002-11-28 Thread John W. Holmes
 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