RE: [PHP] Re: using "filemtime" on remote files

From: Date: Wed, 08 Nov 2000 15:17:18 +0000
Subject: RE: [PHP] Re: using "filemtime" on remote files
Groups: php.general 
Request: Send a blank email to php-general+get-24320@lists.php.net to get a copy of this message
I doubt you will be able to get information about a remote file (http://www.site.com/rz_wap.doc) Perhaps trying the /path/to/rz_wap.doc and see if that helps. ollie > -----Original Message----- > From: Phil Taylor [mailto:phil.taylor@bigfoot.com] > Sent: 08 November 2000 15:11 > To: php-general@lists.php.net > Subject: [PHP] Re: using "filemtime" on remote files > > > 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 >

« previous php.general (#24320) next »