Okay let me explain again. You both have misunderstood my actual problem. I am perfectly aware of the filetime() function.
Here is what i have. I have two directories - clients/websiteA and clients/websiteB. The files in these directories have been uploaded by another person and i dont know know the names of the files there in fact there could be more or less files at any given moment.
What i want to do is some how extract all the names of the files in these directories so that i can say "WebsiteA was last modified on ...." OR i was hoping in my laziness there was a function that would test ALL files in a direcotiry for me instead of individual files.
The main problem is i do not know the names of these files. my script will create the directories then the client will ftp the files for each website into these direcotries but i cant use filetime() with out a specific file name.
Better??? Any ideas?
fandelem wrote:
well, in a much nicer approach, basically this is how you could do it:
$modified = date("m/d/y g:i:s A", filemtime($current_file) );
something that the manual does not mention is that you must be in the cwd (chdir() into it before hand) otherwise your filemtime's will not work; took me a while to figure that out.
cheers,
kyle