Php text image

By alabama on Oct 15, 2011

Screenshots

Using this can help leechers from getting info off your site.
emails, links, idk?

<?php

header("Content-type: image/png"); 

// image size
$picture = imagecreate(500,200); 

// background color

$gray = ImageColorAllocate ($picture, 51, 51, 51);

// white text color

$white = ImageColorAllocate($picture, 255, 255, 255); 

//red text color

$red= ImageColorAllocate($picture, 255, 0, 0); 

// green text color

$green = ImageColorAllocate($picture, 0, 255, 0);

// messages

$messages = array("this color will be red" => $red, "this will be green" => $green, "this will be white." => $white, "red." => $red, "red." => $red, "green" => $green, "white" => $white);

multilineTextToImage($picture, $messages, 2, 45, 30, 20); 
ImagePng ($picture);

function multilineTextToImage($image, $string, $font_size, $x, $y, $yDis)  { 
    $i = 0;
    foreach($string as $k=>$v)
     ImageString($image, $font_size, $x, $y + $yDis * $i++, $k, $v); 
 } 
?>

Comments

Sign in to comment.
alabama   -  Oct 15, 2011

ty

 Respond  
yelow79   -  Oct 15, 2011

I guess it is. good job

 Respond  
alabama   -  Oct 15, 2011

mine is an image.. lmfao look
http://msl.nu/groups/text.php

 Respond  
yelow79   -  Oct 15, 2011

not exactly but this is close

 Respond  
alabama   -  Oct 15, 2011

thats what this is?

 Respond  
yelow79   -  Oct 15, 2011

I believe he is telling you to create an actual image with the text on it so that the person can't get it at all.

 Respond  
alabama   -  Oct 15, 2011

what do u mean

 Respond  
Frenetic   -  Oct 15, 2011

I do this, but write the text into an actual image, so they cannot get it lol.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.