Server Setup
If you want to set up this web service on your own server, the index.php file that handles the POST is supplied in the download package inside the php/jqchart-export directory.
- Make sure that PHP and Java is installed on your server.
- Upload the index.php file from the php/jqchart-export directory in the download package to your server.
- In your FTP program, create directory called temp in the same directory as index.php and chmod this new directory to 777 (Linux/Unix servers only).
- Download Batik from http://xmlgraphics.apache.org/batik/#download. Find the binary distribution for your version of JRE
- Upload batik-rasterizer.jar and the entire lib directory to a location where the index.php is (or some other).
- In the options in the top of the index.php file, set the path to batik-rasterier.jar (in case the jar files are copied in another dir).
- In your chart options using setExporting method, set the url option to match your PHP file location.