Benj
05-30-2006, 10:19 PM
this is not vb related but hopfully its ok as it is a php problem
ive edited this part of a picture gallery script
if ($exifenable=="y") {
// EXIF detail reading
$exif = exif_read_data("$dir/$filename",'IFDO',1,0);
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
if ($name=="DateTimeOriginal") { echo "Date/Time: $val<br />\n"; }
if ($name=="Comments") { echo "$val<br />\n"; }
if ($name=="Keywords") { echo "$val - "; }
if ($name=="Model") { echo "$val<br />\n"; }
if ($name=="FileName") { echo "Filename: $val<br />\n"; }
}
}
};
the problem im having is with this section of the code..(the bits i edited)
if ($name=="Comments") { echo "$val<br />\n"; }
if ($name=="Keywords") { echo "$val - "; }
the problem is the comments and keywords output twice once correctly and once with random characters in between letters. i have no idea how to fix this... could anyone help.... i might help to know that the comments and keywords are added through the windows properties option..
any help would be amazing thanks
ive edited this part of a picture gallery script
if ($exifenable=="y") {
// EXIF detail reading
$exif = exif_read_data("$dir/$filename",'IFDO',1,0);
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
if ($name=="DateTimeOriginal") { echo "Date/Time: $val<br />\n"; }
if ($name=="Comments") { echo "$val<br />\n"; }
if ($name=="Keywords") { echo "$val - "; }
if ($name=="Model") { echo "$val<br />\n"; }
if ($name=="FileName") { echo "Filename: $val<br />\n"; }
}
}
};
the problem im having is with this section of the code..(the bits i edited)
if ($name=="Comments") { echo "$val<br />\n"; }
if ($name=="Keywords") { echo "$val - "; }
the problem is the comments and keywords output twice once correctly and once with random characters in between letters. i have no idea how to fix this... could anyone help.... i might help to know that the comments and keywords are added through the windows properties option..
any help would be amazing thanks