OK GOT IT!!
$utine = strtotime(26-Nov-2001);
$bday=(int)$utine;
$utoday = strtotime();
$btoday = (int)$utoday;
if((($bday-$btoday) = 1209600 ($bday-$btoday)0)){
print you have . round(($bday-$btoday)/86400). Days till
'blanks' bdaybr;
print you are within the two week range.;
}else{
looking at the manual, getdate() is meant to be passed a unix time stamp,
so, you'll need to use strtotime() first thus:
$utime = strtotime(30-Nov-1971);
$dob = getdate($utime);
$dobnum = $dob['yday'];
print $dobnum;
Notice I changed the format of the date, when I tried using the original
I have tried to implement your code Martin, and I do thank you VERY MUCH
for the help, but your code seems to have the same trouble as mine, it
doesn't matter what date I start with, I end up with 364 as the day of
the year, I am on win32 though I don't know if that matters.
Here is what I
I'm running on WinNT4 w/ PHP 4.0.6 and the code I supplied came back with
333
and for today I get 317
dunno why you're getting 364
anyone, any eye-dears ??
-Original Message-
From: sundogcurt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 12:14 PM
To: GENERAL PHP LIST
4 matches
Mail list logo