I did it with the php date function instead of calling the system date and
it seems to eval fine.

<?php

#Changed This
$day = date("l");
# End Change

print "<br>Day is $day - Before<br>";

switch ($day) {
case "Monday":
  print "<br>Day is $day - During<br>";
  $startdated = `date +%Y-%m-%d -d 'a week ago' `  ;
  break;
case "Tuesday":
  print "<br>Day is $day - During<br>";
  $startdated = `date +%Y-%m-%d -d '8 days ago' `  ;
  break;
}

#Added this
echo $startdated;
#End Add

print "<br>Day is $day - After<br>";

?>
--
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/

Reply via email to