kann mir jemand dabei helfen, folgendes array nach Datum zu erstellen, also nach Odnerrstellungsdatum?
PHP
<?
$files = array();
$dh = opendir("./include/gallery");
while($file = readdir($dh)){
if($file != "." and $file != ".."){
array_push($files, $file);
}}
closedir($dh);
?>
<html><head><script language="JavaScript">
function loadDown(){
var datei = document.myform.files.value;
location.href = datei;
}
</script></head><body><form name=myform>
<select name=files onchange="java script:loadDown();">
<?php
sort($files);
foreach ($files as $key => $val) {
echo "files[" . $key . "] = " . $val . "\n";}
?>
<?
foreach($files as $filename){
print "<option value=\"./include/gallery/".$filename."\">$filename</option>\n";
}
?>
Alles anzeigen