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
https://forums.phpfreaks.com/topic/38062-display-image-but/#findComment-182229
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
https://forums.phpfreaks.com/topic/38062-display-image-but/#findComment-182235
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.