How about these lines instead:
if (strpos($attrs, 'height=') === false && strpos($attrs, 'width=') === false) {
list($realwidth,$realheight) = getimagesize($fieldURL.$location);
$attr .= " width='$realwidth' height='$realheight'";
}
It should solve the first problem plus help with performance as it
only runs the getimagesize function when needed. (No idea how fast
that function may be)...
Give it a try if you have a sec and see if it does what you want. It
seems to work for me... Thanks for the suggestion!
Cheers,
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---