Page 1 of 1

error with the graphs (jpgraph)

Posted: Sat Dec 16, 2006 11:53 pm
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

Re: error with the graphs (jpgraph)

Posted: Sun Dec 17, 2006 2:32 am
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:// ?

Posted: Tue Dec 19, 2006 12:05 am
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