getting timestamp for remote URL

hi all,

i’ve been trying to use filemtime() to get the modified date of a remote URL (ie and i keep getting an error that I guess has to do with the limitations of accessibility. is there any way to get around this issue?

thanks a lot for your help! :)

filemtime is not supported with http as there is no way to realy acces the modification time of a file via http.

but there is a way around:

access the file though a stream

get the value of the "Last-Modified: "-header. and pass it on to strtotime.

thanks for your help! i will try that out. :)

on there is an example how to get the "Location: "-header. maybe that helps u.

oh thanks, that’s a really helpful link.

Sponsor our Newsletter | Privacy Policy | Terms of Service