Voting

: nine minus seven?
(Example: nine)

The Note You're Voting On

ville dot jungman at gmail dot com
16 years ago
While downloading images from internet, it's easiest to let php decide what is the file type. So, forget using imagecreatefromjpg, imagecreatefromgif and imagecreatefrompng. Instead, this is the way to go:

<?php
$src
= "http://www.varuste.net/tiedostot/l_ylabanneri.jpg";
$image = imagecreatefromstring(file_get_contents($src));
?>

<< Back to user notes page

To Top