Hey, I need it to use this function:
NOTES: The $digi on the right needs to be from: $digi[$key]
$filemod = filemtime($DOCUMENT_ROOT."/digi-news/$digi/news.dat");
$filemodtime = date("F j Y h:i:s A", $filemod);
While looping. But everytime i do it, it screws up becuase each $filemod and $filemodtime needs to be different in the php file, or it screws all the times up...
Here is the full script if this helps. Please help me!
//***** index.php ******
<?
$name[0]= "Bardock";
$digi[0]= "bardock";
$jour[0]= "bardock";
$iden[0]= "1";
$name[1]= "Blazer";
$digi[1]= "blazer";
$jour[1]= "blazer";
$iden[1]= "2";
if (empty($s)) { $s = 'name'; }
asort($$s);
while(list($key) = each($$s)) {
$digi = $digi[$key];
$id = $iden[$key];
$filemod = filemtime($DOCUMENT_ROOT."/digi-news/$digi/news.dat");
$filemodtime = date("F j Y h:i:s A", $filemod);
print "<a href=/journals/" . $jour[$key];
print ".php>" . $name[$key];
print "</a><br>";
}
?>