Hey Rich,
> > 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:
>
> //Only do files over 2 hour
Here is what I have used for mktime..
$unix_date_33 = mktime(0,0,0,date("m"),date("d")-33,date("Y"));
I am getting the current month, day, and year from the system.
I am subtracting 33 days from the current day.
The result is compared to a date value from the database.
Jef
-Original Messag
On Thu, May 11, 2006 3:37 pm, Ryan A wrote:
> 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
Hey,
First, thank you Eric and Stut, your answers and this
article that I found on the web
http://www.phpbuilder.com/columns/akent2610.php3?print_mode=1
put my mind back on the right tracksometimes its
so damn silly how things you use for ages suddenly get
"muddled" up in the head.
Thank
On 5/11/06, Ryan A <[EMAIL PROTECTED]> wrote:
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 whil
Ryan A wrote:
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 unab
6 matches
Mail list logo