Tweet |
One day I wanted to get the last modification time of an image hosted on an external server , I searched in php and found that function
This a sample of using it
This is the output
Thanks,
<?php $headers = get_headers("http://www.megansteidl.com/images/stick_figure.gif" , 1); echo "<pre>"; print_r($headers); ?>
Array( [0] => HTTP/1.1 200 OK [Date] => Mon, 28 Jun 2010 17:00:50 GMT [Server] => Apache [Last-Modified] => Mon, 14 Jul 2008 22:29:43 GMT [ETag] => "931fa6-12a1-487bd357" [Accept-Ranges] => bytes [Content-Length] => 4769 [Connection] => close [Content-Type] => image/gif )Hope you find it useful.
Thanks,
0 comments: