Page 1 of 1

warning...what the problem???

Posted: Tue Nov 02, 2004 8:42 am
by teckyan888

Code: Select all

<?php
Warning: main(jpgraph.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\cb359\test2.php on line 2

Warning: main(): Failed opening 'jpgraph.php' for inclusion (include_path='.;c:\php4\pear') in C:\Program Files\Apache Group\Apache2\htdocs\cb359\test2.php on line 2

Warning: main(jpgraph_bar.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\cb359\test2.php on line 3

Warning: main(): Failed opening 'jpgraph_bar.php' for inclusion (include_path='.;c:\php4\pear') in C:\Program Files\Apache Group\Apache2\htdocs\cb359\test2.php on line 3
Resource id #2
Fatal error: Cannot instantiate non-existent class: graph in C:\Program Files\Apache Group\Apache2\htdocs\cb359\test2.php on line 16

?>
There are the warning while i put the C:\jpgraph-1.12.2\src inside my c drive...It cannot display the image and i dun know where should i correct it,anyone know how to solve it???

Posted: Tue Nov 02, 2004 8:50 am
by teckyan888

Code: Select all

<?php
JpGraph Error: No path specified for CACHE_DIR. Please specify a path for that DEFINE in jpgraph.php

?>
and also this error...

Posted: Tue Nov 02, 2004 9:39 am
by patrikG
check the configuration for jpgraph - see if the settings for cache_dir are correct.

Posted: Tue Nov 02, 2004 1:11 pm
by teckyan888
So,for this problem...I am using jpgraph-1.12.2 to auto generate my data into the graph,chart...But i dun know what the dir should i put...DO u have any commend???

Posted: Tue Nov 02, 2004 1:35 pm
by rehfeld
just choose a name, and make the directory. then

Code: Select all

define('CACHE_DIR', 'your_directory');

Posted: Tue Nov 02, 2004 1:42 pm
by teckyan888
izzit the the directory is the file i put in???