Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $userID = $_GET['userID'];
- $my_img = imagecreatefromjpeg ( "default.jpg" );
- $text_colour = imagecolorallocate( $my_img, 255, 255, 0 );
- $font ='./arialbd.ttf';
- $font_size = 12;
- $font_color = 0xFFFF00;
- //echo "Welcome! Your sig can be found below!<br>";
- //$info = mysql_fetch_array($user);
- imagettftext($my_img, $font_size, 0, 10, 50, $font_color, $font, "test");
- imagestring( $my_img, 4, 10, 10, $userID, $text_colour );
- imagesetthickness ( $my_img, 10 );
- header( "Content-type: image/jpeg" );
- imagepng( $my_img );
- imagecolordeallocate( $line_color );
- imagecolordeallocate( $text_color );
- imagecolordeallocate( $background );
- imagedestroy( $my_img );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement