September 20, 2024, 03:18:38 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

[PHP] Simple Dynamic Signature Tutorial

Pages: 1 [2] 3   Go Down
  Print  
Author Topic: [PHP] Simple Dynamic Signature Tutorial  (Read 6197 times)
Exilis
Optimistic & Creative
Global Moderator
Global Moderator
Offline Offline

Posts: 929


View Profile
Badges: (View All)
« Reply #15 on: July 08, 2009, 09:14:55 am »

Code:
<?php

$str 
$_GET['txt'];
$image imagecreatefromjpeg('properdarkilscapeuserbar.jpg');
$color imagecolorallocate($image000);
$font 'fonts/VISITOR.FON';
$x 310;
$y 10;
$size 15;
$rotation 0;
imagettftext($image$size$rotation$x$y$color$font$str);

header('Content-Type: image/jpg');
imagejpeg($image);
imagedestroy($image);

?>


You need to upload the font too.
« Last Edit: July 08, 2009, 09:18:46 am by SyntaxBlitz » Report Spam   Logged

Global Mod, (sort of) at your service.

http://twitter.com/timothyaveni

Pages: 1 [2] 3   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy