Quote:
How to create graph in PHP
First of all, php is server side language, it is used to prepare page that will be sent to client browser.
JS and html are client side.
There is basically 3 ways to make a graph in an html page.
- The canvas which is manipulated on client side by some JS code.
- A picture which is on server or made by php code on server side.
- A SVG graph which is prepared on server, SVG is either a file or embedded in the html page.
This site is a good starting point:
W3Schools Online Web Tutorials[
^]
SVG Tutorial[
^]
PHP 5 Tutorial[
^]