SQL PHP HTML ASP JavaScript articles and free scripts to download
 

GD Functions in PHP for managing graphics

By using PHP and GD library support we can develop powerful graphics scripts which can handle many types of image manipulation and development. In new version of GD and PHP support we can develop even FLASH images and animations.

Next time you need a graph or draw a pie chart you need not download the data and then develop a graph in your office software. PHP can online display charts and graphs online by taking data from tables.

We have to ensure that the support for all these graphics capabilities are available in our server and if not available then how to add them. We will learn all these along with script development here. First we will start with how to enable GD support in your server.

Checking GD support of PHP at your server.
Learn how to check GD support availability at server and how to enable it at php.ini file. Read More

Displaying images by header control
To display images we have to have tell browser by header that we are sending one image and not a html page. Read More

Drawing lines in images
The first step to draw line chart or graphs is to draw lines of different length and reading the coordinates. We can change the gallery background or canvas colour also. Read More

Drawing graphs by using data from a mysql table
We can collect data from mysql table and plot a line graph by using this data. The image with the graph can have labels and data display on it. Read More

Adding grid to the line graph
How to add vertical grid to the ling graph drawn by taking data from a mysql table?Read More

Adding border to uploaded image
How to add border to an uploaded image by using gd support in PHP? WE can change the width of the border also. Read More

Watermarking of image by GD
We can add watermark images present in a directory or just uploaded by using GD support. The watermark can be added on the fly to the image while uploading. Read More




Join Our Email List
Email:  
For Email Newsletters you can trust
GD Functions
PHP Sections