error with the graphs (jpgraph)

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
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

error with the graphs (jpgraph)

Post by rami »

normally i make application and test it in windows system which has easyphp as server..with php 4+

and my actual webserver for intranet is in redhat 9 linux which has php 4.2.2

i made an application which has graphical test..using a ready made pack jpgraph

though it worked fine in windows system
it is showing error in linux system as

Warning: Failed opening 'http://www.nobel.edu/jpgraph/src/jpgraph.php' for inclusion (include_path='.:/usr/share/pear') in /var/webs/nobel/jpgraph/src/Examples/example9.php on line 2

Fatal error: Class logscale: Cannot inherit from undefined class linearscale in /var/webs/nobel/jpgraph/src/jpgraph_log.php on line 21

Fatal error: Class lineplot: Cannot inherit from undefined class plot in /var/webs/nobel/jpgraph/src/jpgraph_line.php on line 25

Fatal error: Cannot instantiate non-existent class: graph in /var/webs/nobel/jpgraph/src/Examples/example9.php on line 11


what is cause of error
if not having pear is error
where can i get it and where in linux should i install that pear or files

thanks
by the way that http://www.nobel.edu is for intranet made from dns resolve in linux
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Re: error with the graphs (jpgraph)

Post by volka »

rami wrote:Warning: Failed opening 'http://www.nobel.edu/jpgraph/src/jpgraph.php'
php cannot load find file with the jpgraph class in it.
Why do you try to loads it via http:// ?
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

Post by rami »

i am doing it as the relative path was not working
it was working on windows system but as i moved the jpgraph folder in to my web folder in linux it stopped working
first message it gave was
connection to host lost...every time i access the jpgraph files...

and when i used absolute path it gave those message...
in windows there was www inside it was jpgraph

in linux there is /var/webs/nobel as web folder...and inside it is jpgraph folder
Post Reply