April 18, 2024, 08:43:28 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 5836 times)
0 Members and 2 Guests are viewing this topic.
Exilis
Optimistic & Creative
Global Moderator
Global Moderator
Offline Offline

Posts: 929


View Profile
Badges: (View All)
Tenth year Anniversary Linux User Combination
« on: July 01, 2009, 07:19:30 am »

You can't split a pixel in half. You also don't need the "px" at the end.
Do this:
Code:
<?php

$str 
$_GET['txt'];
$image imagecreatefrompng('real darkilscape userbar.JPEG');
$color imagecolorallocate($image255255255);
$font 'fonts/VISITOR.FON';
$x 275;
$y 9;
$size 15 pt;
$rotation 0;
imagefontext($image$size$rotation$x$y$color$font$str);

header('Content-Type: real darkilscape userbar.JPEG');
imagepng($image);
imagedestroy($image);

?>
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