[Solar-talk] use getimagesize() in a view

Rodrigo Moraes rodrigo.moraes at gmail.com
Mon May 12 12:22:55 CDT 2008


On Mon, May 12, 2008 at 2:05 PM, Jeff Surgeson wrote:
>  "/ecosundecks.com/Public/Ecosundecks/images/gallery/4826b9d70e48f_43f5bb4fa31af.jpg"
>  If I paste it into my browser I get a valid image, so the path is correct.

it may work on a browser, but it is not a valid path for the function
getimagesize(). you need to provide a system path (as you use to
access the file in command line), not a uri, so Solar_Uri_Public can't
be used directly here. a helper method added in your controller or
somewhere else could provide the *full path* that you need. then the
function would work.

rodrigo


More information about the Solar-talk mailing list