According to php.net: GETIMAGESIZE() "can reference a local file or
(configuration permitting) a remote file using one of the supported
streams."

My guess is that the "configuration permitting" bit is the problem. No
more details provided there... I'm using a farm setup with subdomains
which means my farm images get treated as a remote file, rather than
local. I think the best solution may be to test the file page to see
if it is local or remote (existence of a : perhaps?), and only
automatically retrieve the height and width if it is local. Reading up
more on the docs I see that to run this function, php has to copy over
external files and cache the image on the server first. So this should
also be a wise move performance wise also.

When I get back I'll test that theory and see if it works.  :)

In the process I saw several scripts on the php site dealing with
resizing images and creating thumbnails. I want to add a plugin for
this at some point to solve the problem I have of members uploading
gargantuan profile pix. So I guess all's well that ends well. If we
get better functionality, it's worth a bit of aggravation!

Cheers,
Dan


On Thu, Dec 3, 2009 at 9:35 AM, jacmgr <[email protected]> wrote:
> Dan,
>
> I had similar problem with getimagesize and it sometimes crashed
> server.  It depended on which server the field was on. Was a version
> around 20OCT09.  Versions after that didn't have issue.  I haven't
> tried 3.3.1.   Maybe this is a clue to issue.
>
> http://groups.google.com/group/boltwire/browse_thread/thread/58c55d468bdb4dda/3f18100fd412f983?lnk=gst&q=getimagesize
>
> So sounds like a php version or server config issue.
>
> John

--

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.


Reply via email to