what is the comand for loading images to a php file?
and how do i do this ?
Moderators: macek, egami, gesf

<img src="linktoimage.jpg">juansoul wrote:what is the comand for loading images to a php file?
and how do i do this ?


<?php
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("images/button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>

Return to PHP coding => General
Users browsing this forum: No registered users and 3 guests