Results 1 to 5 of 5
-
27th Mar 2010, 08:41 AM #1OPMember
[PHP] Get value from external
I have search for a script for writing text into an image and so far I've got this
PHP Code:<?php
header ("Content-type: image/gif");
$string = "your text";
// try changing this as well
$font = 4;
$width = imagefontwidth($font) * strlen($string) ;
$height = imagefontheight($font) ;
$im = imagecreatefromgif("link-to-image");
$x = 120;
$y = 4;
$backgroundColor = imagecolorallocate ($im, 255, 255, 255);
$textColor = imagecolorallocate ($im, 0, 0,0);
imagestring ($im, $font, $x, $y, $string, $textColor);
imagegif($im);
?>
That is if I execute it like this
Code:text-image.php?t=image in test
Anyone can help me out?
sorry if I've not used the correct terms to explain my problemSnell Reviewed by Snell on . [PHP] Get value from external I have search for a script for writing text into an image and so far I've got this <?php header ("Content-type: image/gif"); $string = "your text"; // try changing this as well $font = 4; $width = imagefontwidth($font) * strlen($string) ; $height = imagefontheight($font) ; $im = imagecreatefromgif("link-to-image"); Rating: 5
-
27th Mar 2010, 09:28 AM #2The Wise OneWebsite's:
twilight.ws ddlrank.comIf you do that you can simply use
PHP Code:$text = $_GET["t"];
I can always be contacted by sending a tweet @twilightws
-
27th Mar 2010, 03:05 PM #3OPMember
so I should simply replace
PHP Code:$string = "your text";
PHP Code:$text = $_GET["t"];
Thanks Whoo
-
27th Mar 2010, 03:10 PM #4It begins...
not
PHP Code:$text = $_GET['t'];
PHP Code:$string = $_GET['t'];
PHP Code:$text = $_GET['t'];
$string = $text;
-
27th Mar 2010, 03:16 PM #5OPMember
yea, thanks.
I have used
PHP Code:$string = $_GET['t'];
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Need help about external link
By MiTU? in forum WordpressReplies: 3Last Post: 5th Jul 2011, 09:07 PM -
External Link Titles
By kos in forum vBulletinReplies: 1Last Post: 26th May 2011, 01:34 PM -
external hard drive help
By lenney in forum Technical Help Desk SupportReplies: 16Last Post: 19th Mar 2011, 05:09 PM -
New External HD
By Whoo in forum General DiscussionReplies: 23Last Post: 18th Feb 2010, 09:27 AM -
external hd
By lenney in forum General DiscussionReplies: 10Last Post: 28th Aug 2009, 04:10 PM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...