PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
By remote, do you mean on a users computer? How would you accomplish this considering that jpg's and gif's would never be stored on the same place on every computer? The only thing that comes to mind is fopen() but I have no idea if that would work for what you are thinking of.
if someone were to give me a URL of an image on their hosting, i would put that into a database. I would then run a script that would run through all the images and find out the last time they were modified and post them in order they were modified.
**EDIT**
Look at the user notes below filemtime, there is a post that shows an example of how to find the last modified time for a remote file.
**END EDIT**
<?php
$url = "http://www.example.com/";
$filename = fopen ("$url", "r");
if ($filename) {
$lastmodified = filemtime($filename);
echo $lastmodified;
}
else {
die ("Could not open the file");
}
?>
Try this out, see if it works. I have not tested it because I just got a new comp and don't have my FTP program yet. I checked out fopen() and it said it could open URL's, the "r" next to opens the $url for reading.