File Properties | Spotlight Comments
Posted: Thu Apr 17, 2008 11:02 pm
I have a jpeg file object ($f) on my Mac and I would like to extract the spotlight comments from the picture. Is there a function that I can use in PHP to do it?
Here is my code:
Thanks in advance.
Here is my code:
Code: Select all
$dir = opendir($d);
$count = 0;
while ($f = readdir($dir)){
if ($f!=='.' && $f!=='..') {
$display_block = $display_block . "<img src=\"pictures/$f\" height=\"200\" width=\"300\">\n";
$count++;
}
if ($count == 3) {
$display_block = $display_block . "<br>";
$count = 0;
}
}
Thanks in advance.