I just typed up an email to someone explaining all the steps to get jpgraphs working.
If anyone is interested:
1. Copy test.php (in the attached zip) to your web server root. Browse to it. It will tell you what version of php your web server supports, if any.
2. Scroll down the resulting page and make sure GD Support is enabled.
3. Go to the
JPGraph home page and download the version appropriate to the version of PHP on your server, ie, 1.22 for PHP4 or 2.2 for PHP5.
4. Go to
Broadstairs' home page to download the wxgraphs.zip file.
5. Edit graphsconf.php in the wxgraphs folder:
a. Make sure these two lines point to the correct folders:
$hostloc = "${WEBROOT}/"; //must have trailing slash
$jploc = "${WEBROOT}/jpgraph-1.22/src/"; //must have trailing slash
b. Make any necessary changes to reflect the units you want to use. Directions are in the graphsconf.php file.
6. Create a new folder under jpgraph-x.xx called ttf.
7. Upload hardpath.php (in the attached zip) to the jpgraph-x.xx/ttf folder on your web server and browse to it.
a. You'll get a line that looks something like:
/homepages/24/d87962498/htdocs/jpgraph-1.22/ttf/
8. Copy this line to the clipboard.
9. Edit jpg-config.inc.php in the jpgraph-x.xx/src folder:
a. Uncomment the line that begins with DEFINE("TTF_DIR",". (Line 40 in my editor)
b. Replace the default path with the result of browsing to hardpath.php.
10. Upload the jpgraph-x.xx folder to your web server. You do not need to upload the jpgraph-x.xx/docs folder.
11. Upload the wxgraphs folder to your web server.
12. Upload arialbd.ttf and arial.ttf from your /windows/fonts folder to /jpgraph-x.xx/ttf folder on the web server.
13. You should now be able to insert graphs by including image links to the files in the wxgraphs folder in your web pages.
a. <img src="wxgraphs/rain_1hr.php /"> for example
14. Delete test.php from your web server when your graphs are working.
See mine at
www.thanko.info/rainfall.php and
http://www.thanko.info/trend_graphs.php.
hardpath.php is thanks to Pinto from this thread:
http://www.weather-watch.com/smf/index.php/topic,26379.0.htmlAny comments, changes or suggestions are welcomed.