Thanks to all of you that responded, I was so busy searching the manual for
that specific function I forgot all about figuring it myself from
date("z")... I really gotta lay off that crack pipe. Thanks again guys.
Also, another item, I know the list is back up now, but this was mail was
sent a solid DAY before I recieved it back through the list.. that's not
very good, perhaps the powers that be should look over the list again...
Matt "TrollBoy" Wiseman
Webmaster: Shoggoth.net
Site Designer: phpslash.org
The oldest and strongest emotion of mankind is fear,
and the oldest and strongest kind of fear is fear of the unknown.
-H.P. Lovecraft
---------------------------------------------------------
Please do not resell my e-mail address
to anyone or send me unsolicited e-mail
---------------------------------------------------------
----- Original Message -----
From: "Brian Paulson" <[EMAIL PROTECTED]>
To: "'Matt "TrollBoy" Wiseman'" <[EMAIL PROTECTED]>
Sent: Friday, June 29, 2001 2:27 PM
Subject: RE: [PHP] Week Number
> When I needed this before I did dome thing like this
>
> <?
> // z day of the year i.e. 0-365
> $days = date("z");
> //Devide number of days by 7 number of day in the week
> $math = ($days/7);
> //result is a number like 25.7435445
> //so we explode that and take the first number which is what we want
> $math = explode(".",$math);
> //then set week to = that number
> $week = $math[0];
> //and print
> Print($week);
> ?>
>
> Hope that helps
>
> Thank You
> Brian Paulson
> Sr. Web Developer
> [EMAIL PROTECTED]
> The Pueblo Chieftain
> www.chieftain.com
> 1-800-279-6397
>
>
> -----Original Message-----
> From: Matt "TrollBoy" Wiseman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 28, 2001 1:33 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Week Number
>
>
> Does know of anyway to get PHP to return the week number?
> As in there are 52 weeks in a year and this is week x?
> If there is no internal feature, perhaps something built into PHPLib?
>
> Lemme know,
> Matt "TrollBoy" Wiseman
> Webmaster: Shoggoth.net
> Site Designer: phpslash.org
> The oldest and strongest emotion of mankind is fear,
> and the oldest and strongest kind of fear is fear of the unknown. -H.P.
> Lovecraft
> ---------------------------------------------------------
> Please do not resell my e-mail address
> to anyone or send me unsolicited e-mail
> ---------------------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED] To
> contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]