i need to get the modified date of a certain file in the directory
this gives me the modified date of the file this code is in.
to see what this code does you can look at this page
it gives me a expiration date of my online photo galleries.
http://allyourproofs.com/proof.php
<?php
// Values in days!!
$expirationDate = 20;
$expDate_DiscountByTotal = 3;
$expDate_DiscountByCopies = 3;
// ...starting from the last modification date of this file!
$startDate = filemtime($_SERVER['SCRIPT_FILENAME']);
$inXdays = date("F j, Y", $startDate + (606024 * $expirationDate));
echo "expirationDate = \"$inXdays\";\n";
$inXdays = date("F j, Y", $startDate + (606024 * $expDate_DiscountByTotal));
echo "expDate_DiscountByTotal = \"$inXdays\";\n";
$inXdays = date("F j, Y", $startDate + (606024 * $expDate_DiscountByCopies));
echo "expDate_DiscountByCopies = \"$inXdays\";\n";
?>