[TriLUG] Perplexed
John Broome
jbroome at gmail.com
Tue Apr 4 11:19:11 EDT 2006
This isn't for a homework assigment is it?
On 4/4/06, Matt Frye <mattfrye at gmail.com> 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>";
>
> 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;
> }
>
> 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/
>
--
"There are many roads to enlightenment, and thus many roads back to
the one true Debian."
More information about the TriLUG
mailing list