SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2010
    Location
    ONS
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to show text 2 image in PHP?

    I did this, but it is not working...

    PHP Code:
    <?php
    $text 
    'This is good';
    $base_64_encoded base64_encode($text);
    ?>
    <img src="data:image/jpeg;base64,<?php echo $base_64_encoded?>" />

  2. #2
    SitePoint Zealot
    Join Date
    May 2006
    Location
    Jhyalipati,Chapagaun-9, Lalitpur, Bagmati, Nepal
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please check tutorial for converting text to image.
    http://www.phpro.org/examples/Text-t...e-with-GD.html
    Simply Sajan


Bookmarks

Posting Permissions

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