Re: using "filemtime" on remote files
| From: | Phil Taylor | Date: | Wed, 08 Nov 2000 15:11:05 +0000 |
| Subject: | Re: using "filemtime" on remote files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-24317@lists.php.net to get a copy of this message | ||
Hi
I would like to create a function which returns the date last modified of a file on a remote
server:-
So far I have
<?php echo date("j M Y", filemtime("http://www.resultszone.com/rz_wap.doc"));
?>
which returns "01 Jan 1970", which is not correct. I'm guessing that this is the
result when it can't find the file or hasn't got access.
Can anybody throw any light on the problem here?
Thanks
Phil