note 60951 rejected from function.filemtime by nlopess
| From: | nlopess@php.net | Date: | Sat, 21 Jan 2006 11:25:32 +0000 |
| Subject: | note 60951 rejected from function.filemtime by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-102201@lists.php.net to get a copy of this message | ||
Note Submitter: nicoolai at hotmail dot com
----
I tried to use the elseif to report the "last updated" with filemtime. It will not
display...why?
<?php
$index = filemtime("index.php");
$competence = filemtime("competence.php");
$solutions = filemtime("solutions.php");
$contact = filemtime("contact.php");
$var1 = array("$competence","$solutions,"$kontakt");
$var2 = array("$index","$solutions","$contact");
$var3 = array("$index","$competence","$contact");
$var4 = array("$index","$competence","$solutions");
if ($index >= $var1) {
$result = "Last updated: " . date("j. F Y \-\ \k\l\.\ G:i", $index);
} elseif ($competence >= $var2) {
$result = "Last updated: " . date("j. F Y \-\ \k\l\.\ G:i", $competence);
} elseif ($losninger >= $var3) {
$result = "Last updated: " . date("j. F Y \-\ \k\l\.\ G:i", $solutions);
} elseif ($contact >= $var4) {
$result = "Last updated: " . date("j. F Y \-\ \k\l\.\ G:i", $contact);
}
echo "$result";
?>