Results 1 to 7 of 7

Thread: PHP

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User zombie13's Avatar
    Join Date: Oct:2012
    Location: Bulgaria - Ruse
    Posts: 63

    PHP

    .



    PHP Code:
    header('Content-Type: image/png');
    $img imagecreatetruecolor(50,50);
    $text_color imagecolorallocate($img,233,14,91);
    imagestring($img,1,5,5,'Hello World',$text_color);
    var_dump($img);
    imagepng($img);
    imagedestroy($img); 
    php.net

    The image "http://localhost/go.php" cannot be displayed beacause it contains errors.
    .
    .

  2. #2
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    _(). --, , .
    .

  3. #3
    Registered User zombie13's Avatar
    Join Date: Oct:2012
    Location: Bulgaria - Ruse
    Posts: 63
    tedych , - .

    - .

  4. #4
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    ? GD - php.ini.
    , , 100% , .
    - . , , php.ini, , , , . .

  5. #5
    Registered User zombie13's Avatar
    Join Date: Oct:2012
    Location: Bulgaria - Ruse
    Posts: 63
    , <img src="captcha.php" /> php . .
    , .

  6. #6
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    Quote Originally Posted by zombie13 View Post
    , <img src="captcha.php" /> php . .
    , .
    . (captcha.php), img . ?

  7. #7
    Registered User zombie13's Avatar
    Join Date: Oct:2012
    Location: Bulgaria - Ruse
    Posts: 63
    tedych

    HTML Code:
    <form>
    <img src="captch.php" />
    </form>

    captch.php
    PHP Code:
    header('Content-Type: image/png');
    $img imagecreatetruecolor(150,50);
    $text_color imagecolorallocate($img,233,14,91);
    imagestring($img,1,5,5,'Hello World',$text_color);
    imagepng($img);
    imagedestroy($img); 
    captcha.php src img.
    , .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |