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

From: Date: Wed, 08 Nov 2000 15:21:04 +0000
Subject: RE: [PHP] Re: using "filemtime" on remote files
Groups: php.general 
Request: Send a blank email to php-general+get-24322@lists.php.net to get a copy of this message
I do this ; and when ever I change the file I manually modify the date var. $DATE = "whatever: "; echo ("$date"); -----Original Message----- From: o.cook@etoncollege.org.uk [mailto:o.cook@etoncollege.org.uk] Sent: Wednesday, November 08, 2000 9:17 AM To: phil.taylor@bigfoot.com Cc: php-general@lists.php.net Subject: RE: [PHP] Re: using "filemtime" on remote files 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#24322) next »