PHP with created image write text and text pt problem

Discussion in 'PHP' started by erkin0007, Jun 10, 2013.

  1. #1
    Hi
    ı am makin picture with imagecreate than I am showing tobackground with imagecolorallocate and I am printing with imagestring, my problem is ' ı can't set this article's height, ı wanna set it's height and ı wanna to when the line was be full , it will pass to down


    pt is punto
     
    erkin0007, Jun 10, 2013 IP
  2. aidanriley629

    aidanriley629 Banned

    Messages:
    429
    Likes Received:
    23
    Best Answers:
    3
    Trophy Points:
    175
    #2
    Paste your code please
     
    aidanriley629, Jun 10, 2013 IP
  3. erkin0007

    erkin0007 Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    thank you

    
    echo '<form action="" method="post">
    <input type="text" name="text" id="text">
    <input type="submit" value="submit">
    </form>';
    if(isset($_POST['text'])){
    $text=$_POST['text'];
    $image = imagecreate(300,300);
    $background = imagecolorallocate($image, 250, 0, 0);//color
    $imagecolor = imagecolorallocate($image, 0, 0, 0);
    imagestring($image, 454, 6,5 , "$text", $imagecolor);
    imagepng($image,"images/test.png");
    sleep(2);// my pc is slow
    imagedestroy($image);
    }
    PHP:
    $text is came to form.the user is determine($text)
     
    erkin0007, Jun 11, 2013 IP
  4. aidanriley629

    aidanriley629 Banned

    Messages:
    429
    Likes Received:
    23
    Best Answers:
    3
    Trophy Points:
    175
    #4
    do you have the full site so I can inspect the size elements of everything?
     
    aidanriley629, Jun 11, 2013 IP
  5. erkin0007

    erkin0007 Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    I don't have and there's no need to the full site
     
    erkin0007, Jun 11, 2013 IP
  6. aidanriley629

    aidanriley629 Banned

    Messages:
    429
    Likes Received:
    23
    Best Answers:
    3
    Trophy Points:
    175
    #6
    ok.. then why can't you set its height? And what is "it", the image created with imagecreate?
     
    aidanriley629, Jun 12, 2013 IP