Resize content of HTML image markup with PHP -


My HTML page displays an image with the following code (using Flickr)
 

Code> & lt; ? Php echo '& lt; Img src = "http: // farm". $ Photo ["farm"] .. Static.flickr.com / '. $ Photo ["server"].' / '. $ Photo ["id"].' _ '. $ Photo ["secret"] .jpg' & gt; ';?? Gt;

The thing is That I would like to change this image again and then it will display it on the page and I do not know how to do it.

Add width and height attributes to your HTML string.

  & lt ;? php echo '& lt; img width =' 200px 'height =' 200px 'src =" http : // farm '. $ Photo ["farm"] .. Static.flickr.com / '. $ Photo ["server"]. '/' $ Photo ["id"]. '_'. $ Photo ["secret"]. '.jpg' & gt; '; ? & Gt;    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -