Breaking

LightBlog

Friday, 30 January 2015

How to create image in PHP

PHP makes it very easy to do many things needed on a website among which is to create an image .The ability to generate an image in PHP can be useful if you want to do things like create CAPTCHA images or even design logo, banner .You can also set the color of image .PHP has some built-in image generation functions, we need to have the GD library installed .you can use the imagecreate() to create the image .given below step to create a image .

  1. First you can set the GD library ( ) .
  2. Open the WAMP       .
  3. After set GD then you can open the editor and write the given code .
               
                 




        
      4.Save the program to first.php .and run it to see output. 

      Here Video Tutorial

                               
 
         
Adbox