You are here: Re: newbie: date/time functions problems « PHP Programming Language « IT news, forums, messages
Re: newbie: date/time functions problems

Posted by NC on 01/01/08 10:32

On Dec 30 2007, 11:33 pm, "R.A.M." <r_ahims...@poczta.onet.pl> wrote:
> Uzytkownik "NC" <n...@iname.com> napisal...
>
> > Try this:
>
> > date_default_timezone_set('Europe/Warsaw');
> > echo date('Y.m.d', filemtime($_SERVER['SCRIPT_FILENAME']));
>
> Thank you, but...
> Now I have:
>
> Warning: filemtime() [function.filemtime]: stat failed
> for /StowarzyszenieIntegracja/Association.php in
> F:\Inetpub\wwwroot\StowarzyszenieIntegracja\Scripts.inc
> on line 217

At least we got rid of the date() warning... Oh well, let's get
radical:

date_default_timezone_set('Europe/Warsaw');
echo date('Y.m.d', filemtime(__FILE__));

The problem with this approach is that it will display modification
time for Scripts.inc rather than Association.php... Can you live with
that?

Cheers,
NC

 

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

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