Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Date file last modified?


  • Please log in to reply
2 replies to this topic

#1 kjm782

kjm782

  • Members
  • 30 posts
  • OFFLINE
  •  
  • Local time:01:53 AM

Posted 21 January 2009 - 08:17 PM

I have a simple web page that links to a flash video (.flv) file that can be downloaded. The file is updated every night. The problem is the person trying to download the file can't really tell when it has been updated. They'll either download the whole thing or realize that the file size is the same as the night before and stop it. Then they will have to keep trying every 15 minutes or so until the new file has been uploaded onto the web server.

I was hoping there was some way I could have the web page display the last time the video file was modified (not the HTML document). That way the user could just refresh the page until the modified date changed. This isn't meant to be a professional site, so if it looks ugly that's fine. Does anyone know of an easy way to do this?

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:12:53 AM

Posted 21 January 2009 - 10:40 PM

I was hoping there was some way I could have the web page display the last time the video file was modified (not the HTML document).

I'm not sure what you mean. The web page is the HTML document. You could perhaps use an AJAX call, but there is no way to be able to compare it to the file that is already on the user's computer.

#3 kjm782

kjm782
  • Topic Starter

  • Members
  • 30 posts
  • OFFLINE
  •  
  • Local time:01:53 AM

Posted 22 January 2009 - 05:16 AM

I have a simple <a href=> link to a .flv video file for download. I would like the web page to display the last modified date of the video file.

I don't really need to do a comparison to any files already on the user's computer. It would just need to look at the file for download on the web server.

Thanks for your help.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users