Jochem Maas wrote:
Diogo Neves schreef:
On Wed, Sep 3, 2008 at 12:35 AM, Vernon <[EMAIL PROTECTED]> wrote:
I've gotten the one array down and I've figured out how to sort that
array,
however, I need to sort the array by the modified date of the file.
Here's
what I got so far:
//HERE IS MY C
Diogo Neves schreef:
On Wed, Sep 3, 2008 at 12:35 AM, Vernon <[EMAIL PROTECTED]> wrote:
I've gotten the one array down and I've figured out how to sort that array,
however, I need to sort the array by the modified date of the file. Here's
what I got so far:
";
}
}
}
?>
Any ideas on how to fi
That worked great. Thanks.
"Micah Gersten" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
http://us3.php.net/basename
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://us3.php.net/basename
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Vernon wrote:
> SOLVED!
>
> I made the following change as well to fix the file name:
>
> BEFORE:
> echo date("m-d-Y", $entry['filemtime']) . " {$file}\n";
> AFTER:
> echo dat
SOLVED!
I made the following change as well to fix the file name:
BEFORE:
echo date("m-d-Y", $entry['filemtime']) . " {$file}\n";
AFTER:
echo date("m-d-Y", $entry['filemtime']) . $entry['filename'] . " />\n";
One last question.
The $entry['filename'] is the file name and path:
/
All is weel except for 2 things:
1. $filemtime = filemtime( $dir . $file ); needed to be changed to >
$filemtime = filemtime( $file );
2. The filename is the same filename over and over again.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
Vernon wrote:
I'm really starting to feel incompitant here. Sorry to ask, but could
you show me what you mean?
$file, 'filemtime' => $filemtime);
# This is the list of filemtimes to sort by later
$filemtimes[] = $filemtime;
}
# Sort array based on $filemtimes
# http://php.net
I'm really starting to feel incompitant here. Sorry to ask, but could you
show me what you mean?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Vernon wrote:
Ok, I've gotten the following so far, which is giving me the results,
except it is still sorting by file name and not the file's date.
$file, 'filemtime' => $filemtime);
# This is the list of filemtimes to sort by later
$filemtimes[] = $filemtime;
# Sort array based on $filem
Ok, I've gotten the following so far, which is giving me the results, except
it is still sorting by file name and not the file's date.
$file, 'filemtime' => $filemtime);
# This is the list of filemtimes to sort by later
$filemtimes[] = $filemtime;
# Sort array based on $filemtimes
# http:/
This may be a stupid question, but I am sick and under the guy and am
wondering if you could you show me how to simply echo each file name using
the exmaple below?
Thanks
"Jim Lucas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Jim Lucas wrote:
ok, here would be my version of
Jim Lucas wrote:
Vernon wrote:
I've gotten the one array down and I've figured out how to sort that
array, however, I need to sort the array by the modified date of the
file. Here's what I got so far:
";
}
}
}
?>
Any ideas on how to fix this? Thanks
We need to see what is in the array, n
On Wed, Sep 3, 2008 at 12:35 AM, Vernon <[EMAIL PROTECTED]> wrote:
> I've gotten the one array down and I've figured out how to sort that array,
> however, I need to sort the array by the modified date of the file. Here's
> what I got so far:
>
> // Open current directory
> if($handle = opendir($
Vernon wrote:
I've gotten the one array down and I've figured out how to sort that
array, however, I need to sort the array by the modified date of the
file. Here's what I got so far:
";
}
}
}
?>
Any ideas on how to fix this? Thanks
We need to see what is in the array, not just how you th
// if $files[] exists, sort it and print all elements in it.
if(is_array($files)){
//HERE IS MY CURRENT SORT WHICH I KNOW I NEED TO CHANGE BUT AM UNSURE HOW
sort($files);
foreach($files as $file){
$completeFileName = $dir . $file;
//I WANT TO SORT BY THIS
echo date("m-d-Y", filemtime($completeFi
15 matches
Mail list logo