Re: filemtime -help
| From: | Mekrand | Date: | Thu, 12 Dec 2002 16:54:49 +0000 |
| Subject: | Re: filemtime -help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128040@lists.php.net to get a copy of this message | ||
thanks
"@ Edwin" <copperwalls@hotmail.com> wrote in message
news:20021212155626.62165.qmail@pb1.pair.com...
> Hello,
>
> "Mekrand" <hanay@su.sabanciuniv.edu> wrote in message
> news:20021212133633.19470.qmail@pb1.pair.com...
> > i have a problem with filemtime function, i want script print out the
date
> > of file last modified.
> > here is code,
> > $fp=fopen("ex.txt","r");
> > echo date("j F Y H:i", filemtime($fp));
> > fclose($fp);
>
> I guess you have to check the manual again :)
>
> You don't need fopen() and fclose() here. Just do:
>
> echo date("j F Y H:i", filemtime("ex.txt"));
>
> - E
>