PHP Conference Kansai 2025

Voting

: seven plus zero?
(Example: nine)

The Note You're Voting On

alexandrebr at ignorethis dot gmail dot com
19 years ago
An easy example to help understanding this function...

<?
$loadFile = "http://static.php.net/images/php.gif";

$im = imagecreatefromstring(file_get_contents($loadFile));
// identical to imagecreatefromgif($loadFile);
imagegif($im);
?>

The function will try to auto-determine file format (jpg, gif, png....), and will return false if fails.

<< Back to user notes page

To Top