I'm not sure what other version you're referring to. If you mean the one that I said can open any folder, that's not exactly what it was. It had some code left over from that and that code was causing a problem on your server, so I reverted that part to the original. If you mean the first one I gave you, that one could probably be modified to work using the DateTimeOriginal property of the EXIF.
If you want the full version of the one that can open any folder, let me know. There might be a way to get it work. I'm thinking that, as long as the network path is given to it as a parameter in the query string, it could just use that as the baseurl.
But I'm not sure how secure it is. Someone could use it to read the images in any folder on the server. I guess that's not a real big deal on the site you're using it on, but it could be for some sites.
Oh, at least one other thing has occurred to me off and on with this concept. Like with the FileDateTime property, which was 0 on your iPhone images, it's possible that could happen with the DateTimeOriginal property, in which case you would get that date in late Dec, 1969 I think it was, or Jan 1 1970, as I think we are doing this all server side now. In any case, there's a way to avoid that here:
Code:
if($filedate && isset($filedate['DateTimeOriginal'])){
By adding:
Code:
if($filedate && isset($filedate['DateTimeOriginal']) && $filedate['DateTimeOriginal'] > 0){
But of course it will then default to filetime(). Still better than an inaccurate date so far in the past.
I believe that using PHP or an image utility, you can set EXIF values if they're lost or wrong. I know you can set at least some of them. I'm not sure if you can set the DateTimeOriginal though.
Bookmarks