J
John Taylor-Johnston
Comparison study. Can this be done in Perl? How many lines?
<?php
$display_start = "2003-09-01";
$display_end = "2003-09-31";
echo "testing<br>";
$stuff = "$display_start - $display_end<br>";
if((date("Y-m-d") >= $display_start) && (date("Y-m-d") <= $display_end)){
print($stuff);
}else{
echo "Date expired: ".date("Y-m-d");
}
?>
<?php
$display_start = "2003-09-01";
$display_end = "2003-09-31";
echo "testing<br>";
$stuff = "$display_start - $display_end<br>";
if((date("Y-m-d") >= $display_start) && (date("Y-m-d") <= $display_end)){
print($stuff);
}else{
echo "Date expired: ".date("Y-m-d");
}
?>