Re: [PHP] Mktime formatting problems

2006-05-11 Thread Ryan A
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

RE: [PHP] Mktime formatting problems

2006-05-11 Thread Jef Sullivan
database. Jef -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 2:38 PM To: php php Subject: [PHP] Mktime formatting problems Hey, So far this is what I have done: - 1) read the files from a directory, discard the files

Re: [PHP] Mktime formatting problems

2006-05-11 Thread Richard Lynch
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

Re: [PHP] Mktime formatting problems

2006-05-11 Thread Ryan A
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

Re: [PHP] Mktime formatting problems

2006-05-11 Thread Eric Butera
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

Re: [PHP] Mktime formatting problems

2006-05-11 Thread Stut
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

[PHP] Mktime formatting problems

2006-05-11 Thread Ryan A
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