Location: PHPKode > scripts > TextToImage > texttoimage/3.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<p>Test 3</p>
With the help of .htaccess I was able to create an instant image. Check the code below.

## .htaccess ##
Options +FollowSymlinks
RewriteEngine on
# Change the directory path below to your TextToImage directory. My example directory path is http://webdocs/php/GD/TextToImage/
RewriteRule TextToImage\/(.*)$ http://webdocs/php/GD/TextToImage/TextToImage.php?texttoimage=$1 [NC]

## html code for the image ##
&lt;img src="TextToImage/testimage1.jpg" border="1" /&gt;

<img src="TextToImage/testimage1.jpg" border="1" />

Return current item: TextToImage