You are here: Re: Last Day of Year Date Bug? « All PHP « IT news, forums, messages
Re: Last Day of Year Date Bug?

Posted by Tom on 01/02/08 19:52

On Mon, 31 Dec 2007 05:07:22 -0800 (PST), ashore wrote...
>
>Guys, the line below just returned "Dec 07" as the date for one month
>back from today. Hardly life-threatening, but any thoughts?
>
><?php print date("M `y", mktime(0, 0, 0, date("m")-1, date("d"),
>date("Y")));?>
>
>AS

If you're PHP is on a Unix/Linux system, you can use a system command

$date = system('/your/path/date -v-1m');


Tom
--
Newsguy Free Trial Accounts increased to 20 GB
http://newsguy.com/overview.htm

 

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

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