
May 7th, 2003, 02:49 AM
|
|
The calm b4 the storm
|
|
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404
Time spent in forums: < 1 sec
Reputation Power: 7
|
|
hey ed,
welcome to the devarticles web site!!
you could do something like compare the current system date to that of any files on the server.....
eg:
PHP Code:
//read the directory for files
$directory = opendir(".");
//get the current date in the right format (Y = YYYY, m = MM, d = DD)
$todaysDate = date("Ymd",$time);
//do a loop
while($filename = readdir($directory))
{
//compare each file name to the current date
if ($filename == $todaysDate . ".txt")
{
//do something with the file
}
}
that in theory might work, but I'd have to look more closely to see if it would work in practise... but it's a start!!
Is that the sort of thing you mean?
|