Jump to content

How can I add two variables to a getimagesize?


oraya

Recommended Posts

Is it possible to place to variables into a getimage?

 

list($width, $height, $type, $attr) = getimagesize("image_name.jpg");

 

So in stead of the image_name.jpg.  I'd have something like this

 

list($width, $height, $type, $attr) = getimagesize("$location, $image");

 

I've googled to find an answer but only found info on getimagesize and not on this question.

 

Any help would be gratefully received, thank you in advane

Oray

Link to comment
Share on other sites

Hi thorpe.

 

thank you for the reply.  How would I add a second variable.  The first is the directory of the image and the second is the image name.  I tried it this way and it doesn't seem to be passing the image and directory to it.  I also tried it with a comma still no go.

 

list($width, $height, $type, $attr) = getimagesize($location . $image);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.