Jump to content

PHP Image


plznty

Recommended Posts

<?php

header("Content-type: image/png");
$string = $_GET['text'];
$im     = imagecreatefrompng("help.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);

?>

 

How could I get another text below the current text. like a line under

Link to comment
https://forums.phpfreaks.com/topic/216037-php-image/
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.