Hello,

"Mekrand" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Reply via email to