Matt Frye wrote:
Can someone tell me why the following code would not set $startdated
to the correct date?  Stuff inside the 'switch' seems to go into a
black hole, even when it evals correctly.

<?php

$day = `date +%A`;

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

Replace the above print statement with print "<br>Day is [$day]"; and you will see why. There is a newline at the end of the $day variable. Why are you executing an OS command to do something built into php ? date("l") will get you the same thing.

Robert



--
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