[thelist] Re: broken Web page...

Faust at LeeMarvin.com Faust at LeeMarvin.com
Fri Mar 1 11:17:20 CST 2002


On 1 Mar 2002 at 11:28, Dayn Riegel evolt at jointhe.net wrote:

> However, this is also an "open" post to thelist -- does anyone else
> see all the "lines" when the page first loads up? Or is it just me?

IE6/WIN98 does not see lines.

Faust

<tip type="php" author="Faust">
function daysInFebruary($s) {
// int daysInFebruary(mixed var)
// Returns number of days in February for a valid four digit year,
// FALSE otherwise.
   $s = trim($s);
   if (isYear($s) && strlen($s) == 4) {
      return false;
   }
   return (($s % 4 == 0) &&  ((!($s % 100 == 0)) || ($s % 400 == 0))) ? 29 :
28;
}

function isYear($s){
// bool isYear(mixed var)
// Returns TRUE if var is a two for four digit year,
// FALSE otherwise.
   $s = trim($s);
   if (strlen($s) == 2 || strlen($s) == 4) {
      $s = intval($s);
      return ($s > 0 && $s < 10000);
   }
   else {
      return false;
   }
}
</tip>



More information about the thelist mailing list