Activity Stream
48,167 MEMBERS
6937 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member

    Default [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 ($im255255255);
    $textColor imagecolorallocate ($im00,0);
    imagestring ($im$font$x$y,  $string$textColor);
    imagegif($im);
    ?>
    However I don't know who to change the string $string externally.

    That is if I execute it like this

    Code: 
    text-image.php?t=image in test
    I should the text "image in test" in the image.

    Anyone can help me out?

    sorry if I've not used the correct terms to explain my problem
    Snell 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

  2.   Sponsored Links

  3.     
    #2
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    If you do that you can simply use
    PHP Code: 
    $text $_GET["t"]; 
    I can always be contacted by sending a tweet @twilightws

  4.     
    #3
    Member
    so I should simply replace

    PHP Code: 
    $string "your text"
    by

    PHP Code: 
    $text $_GET["t"]; 


    Thanks Whoo

  5.     
    #4
    It begins...
    not
    PHP Code: 
     $text $_GET['t']; 
    But instead (going by your code)
    PHP Code: 
    $string $_GET['t']; 
    OR you could (it's the same. but hey.. does not make a huge difference)
    PHP Code: 
    $text $_GET['t'];
    $string $text

  6.     
    #5
    Member
    yea, thanks.

    I have used

    PHP Code: 
    $string $_GET['t']; 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help about external link
    By MiTU? in forum Wordpress
    Replies: 3
    Last Post: 5th Jul 2011, 09:07 PM
  2. External Link Titles
    By kos in forum vBulletin
    Replies: 1
    Last Post: 26th May 2011, 01:34 PM
  3. external hard drive help
    By lenney in forum Technical Help Desk Support
    Replies: 16
    Last Post: 19th Mar 2011, 05:09 PM
  4. New External HD
    By Whoo in forum General Discussion
    Replies: 23
    Last Post: 18th Feb 2010, 09:27 AM
  5. external hd
    By lenney in forum General Discussion
    Replies: 10
    Last Post: 28th Aug 2009, 04:10 PM

Tags for this Thread

BE SOCIAL