Here's my current paths to the "jpgraph" files. I've tried many versions of the paths but no luck so far.
Is there a "sunposa.png" image?
###############################################################
#Settings #
###############################################################
include ("/wxgraphs/graphsconf.php");
include ($jploc."/home/baldwinj1/public_html/jpgraph/src/jpgraph.php");
include ($jploc."/home/baldwinj1/public_html/jpgraph/src/jpgraph_scatter.php");
include ($jploc."/home/baldwinj1/public_html/jpgraph/src/jpgraph_line.php");
include ($jploc."/home/baldwinj1/public_html/jpgraph/src/jpgraph_date.php");
$clientrawextra = get_raw("${hostloc}clientrawextra.txt");
***************************************************************
Posted by Ken True on the Weather-Watch forum
Hmmm.. this
Code: [Select]
include ("/wxgraphs/graphsconf.php");
include ($jploc."/home/baldwinj1/public_html/jpgraph/src/jpgraph.php");
include ($jploc."/home/baldwinj1/public_html/jpgraph/src/jpgraph_scatter.php");
include ($jploc."/home/baldwinj1/public_html/jpgraph/src/jpgraph_line.php");
include ($jploc."/home/baldwinj1/public_html/jpgraph/src/jpgraph_date.php");
doesn't look quite right. Maybe try
Code: [Select]
include ("./wxgraphs/graphsconf.php");
$jploc = '/home/baldwinj1/public_html/jpgraph/';
include ($jploc."src/jpgraph.php");
include ($jploc."src/jpgraph_scatter.php");
include ($jploc."src/jpgraph_line.php");
include ($jploc."src/jpgraph_date.php");
The "/wxgraphs/graphsconf.php" implied fetching it from the server's root directory (not possible). "./wxgraphs/graphsconf.php" means fetch from the current directory -- more likely to work.
The $jploc = '/home/baldwinj1/public_html/jpgraph/'; sets the JpGraph main directory to the absolute path to your JpGraph installation. Then the following include statements should work (and any other include that JpGraph may have internally).
***************************************
Ken's solution works!!!!!!!!!!!