warning...what the problem???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
teckyan888
Forum Commoner
Posts: 40
Joined: Tue May 11, 2004 10:46 am

warning...what the problem???

Post 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???
teckyan888
Forum Commoner
Posts: 40
Joined: Tue May 11, 2004 10:46 am

Post 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...
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

check the configuration for jpgraph - see if the settings for cache_dir are correct.
teckyan888
Forum Commoner
Posts: 40
Joined: Tue May 11, 2004 10:46 am

Post 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???
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

just choose a name, and make the directory. then

Code: Select all

define('CACHE_DIR', 'your_directory');
teckyan888
Forum Commoner
Posts: 40
Joined: Tue May 11, 2004 10:46 am

Post by teckyan888 »

izzit the the directory is the file i put in???
Post Reply