Reply to Re: Question from php cookbook

Your name:

Reply:


Posted by Mike on 10/02/23 11:34

Philip,(and All)
I understand the documentation well. And yes I read the documentation.And
yes I know those functions in and out. That wasnt my question.Let me
clarify:
I wrote:"I dont understand what the $yesterday and $day_secs are for?"
What do those 2 variables have to do with creating the calendar???
This is why I refered to the book.

Thanks
Mike
"Philip Ronan" <invalid@invalid.invalid> wrote in message
news:BFC511EC.3C6F9%invalid@invalid.invalid...
> "Mike" wrote:
>
>> This is a little snippet from the calendar recipe 3.17. I dont understand
>> what the $yesterday and $day_secs are for?
>
>> $yesterday = time() - 86400;
>
> time() is the current time in seconds. If you subtract 86400 from that,
> you
> get the same time on the previous day (Hint: 86400 = 24 x 3600)
>
>> $day_secs = mktime(0, 0, 0, $month, $day, $year);
>
> Uhm, you *are* aware that the PHP documentation is all available online,
> aren't you? If you visit <http://php.net/mktime> and read what's there,
> then
> it should become fairly obvious what this means.
>
> --
> phil [dot] ronan @ virgin [dot] net
> http://vzone.virgin.net/phil.ronan/
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация