how can I get an Image file title with php? I am talking about the title sh开发者_运维知识库own near author and comments in the file properties.
thanks in advance!
I'm guessing you can get it with exif_read_data :)
http://php.net/manual/en/function.exif-read-data.php
It's easy with jQuery.
<script type="text/javascript" src="JQUERY-PATH"></script>
<script>
$('img').each(function(){
alert( $(this).attr('title') );
});
</script>
Edit: do you mean the filename or title within the HTML?
精彩评论