Mktime formatting problems
| From: | Ryan A | Date: | Thu, 11 May 2006 20:37:56 +0000 |
| Subject: | Mktime formatting problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-236019@lists.php.net to get a copy of this message | ||
Hey,
So far this is what I have done:
-----------------------------
1) read the files from a directory, discard the files
with a .php extention and the directories (eg: . and
.. )
2) put the files into an array ($the_files[])
3) put it into a while loop and display the files like
so:
echo $the_files[$i] . date("F d Y H:i:s.",
filectime($directory_with_files.$the_files[$i]));
-----------------------------
The next step is, I want to only echo the files that
are over x minutes (or x hours) old, ignore anything
below, I am using mktime() along with date() to format
it accordingly...but am unable to do so.
Can someone kindly give me a quick example on how to
do this? sitting too long on the comp, I think i'm
losing it :-(
If you want the php file that i have written please
tell me and will send it to you offlist.
Thanks!
Ryan
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
-----
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=bXVzaWNndTc%3D
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com