开发者

php get images properties "title"

开发者 https://www.devze.com 2023-02-16 07:22 出处:网络
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.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消