Jump to content

Display Image (BUT....)


Warptweet

Recommended Posts

Well, i don't really have much of a code since I don't really understand the function..

 

<?php
$imagesize = getimagesize(http://www.warptweet.com/warptweetslogo.png);
if $imagesize < 75{
do this action
}
else
do this action

 

So I basically need help with two things...

the line "if $imagesize <75" probably does not mean 75x75 in size, so I need a way to make the computer understand if $imagesize is over 75x75.

 

And if $imagesize is over 75x75, then do an action.

Else, then do a different action.

Link to comment
Share on other sites

Yay! It works!

 

Now can you please just help me with one more quick thing?

 

<?php

list($width, $height) = getimagesize("http://www.warptweet.com/warptweetslogo.png");

 

if ($width > 100){

if ($height > 100){

do this action

}

}

else

do this action

?>

 

My question: Is that how I would do it? Or is the > and < thingy wrongly coded?

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.