You are here: Re: Day Number « All PHP « IT news, forums, messages
Re: Day Number

Posted by Geoff Berrow on 05/10/05 13:44

I noticed that Message-ID:
<Mj_fe.8471$31.6780@news-server.bigpond.net.au> from Scotty contained
the following:

>I don't know any php but I have been looking around and I think this is
>possible. Can anyone point me to a site where I can learn how I could do
>this?

If your start date is 1st May 2005...
<?php
print floor((strtotime("now")-strtotime("1 May 2005"))/(60*60*24));
//outputs 9
?>

--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

 

Navigation:

[Reply to this 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

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