Figure 7-6 (Web hosting services) How It Works First, you add

Figure 7-6 How It Works First, you add the embed caption option to your form in showimage.php. This is a no-brainer, right? Good. Then you add the imagettftext() function to your modifyimage.php file like this: //**INSERT THE FOLLOWING LINES: if ($text == on ) { imagettftext($image, 12, 0, 20, 20, 0, arial.ttf , $image_caption); } //**END OF INSERT The imagettftext() function is only one of the many text/string functions available in PHP/GD. The function is made up of eight values, in this order: 1. The image where the text is to go ($image in this example) 2. The font size of the text (12 in this example) 217 Manipulating and Creating Images with PHP
From our experience, we can recommend PHP Web Hosting services, if you need affordable webhost to host and run your web application.

Leave a Reply