|
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
[Back to original message]
|