#!/usr/bin/php -q
"; list($month, $day, $year) = explode ('/', $today_full); $today = "$month/$day"; $tommorowday = $day + 1; $tommorow = "$month/$tommorowday"; echo "Today's hebrew date is $today" . "

"; echo "Tommorows's hebrew date is $tommorow" . "

"; $found_today = array_search($today,$chag); $found_tommorow = array_search($tommorow,$chag); if ($found_today) { write ("SET VARIABLE $chag \"chag\""); } elseif ($found_tommorow) { // echo "Today is erev chag $found_tommorow!"; // } else { write ("SET VARIABLE $chag \"notchag\""); } /* if ($found_today) { echo "Today is the chag of $found_today!"; } elseif ($found_tommorow) { echo "Today is erev chag $found_tommorow!"; } else { echo "Today is not a chag or even erev chag." . "

"; } */ ?>