Re: about cake and jpgraph

2006-04-30 Thread [EMAIL PROTECTED]
I have resolved this problem.The problems lies in the include statement. Actually the same file is included twice directly or indirectly , so the php parser will tell you the classes are redeclared.Still Thank you for your help very much, and I hope I can help the new jpgraphers to avoid this mist

Re: about cake and jpgraph

2006-04-30 Thread [EMAIL PROTECTED]
I post my error report here: Fatal error: Cannot redeclare _phperrorhandler() (previously declared in /usr/local/www/jplib/jpgraph.php:494) in /usr/local/www/jplib/jpgraph.php on line 499 the code segment is here: function _phpErrorHandler($errno,$errmsg,$filename, $linenum, $vars) {

Re: about cake and jpgraph

2006-04-30 Thread [EMAIL PROTECTED]
And what's more , I guessed if there is an existed class definition somewhere else in my project , So I just change all the redeclared class name to a new name, but again , I am told that this new class is redeclared. PS: I just use straight include statement in my project to import jpgraphp l

Re: about cake and jpgraph

2006-04-30 Thread [EMAIL PROTECTED]
Thanks for your reply.Hmm.. I just set the DEBUG option in the core.php of cake to be 1. Then I do some test.It said that my one of class in the jpgraph.php redeclared, and I tried to find another definitions of that class, but I can not find it.So I just removed the class definished and all the c

Re: about cake and jpgraph

2006-04-28 Thread scott lewis
On 28-Apr-06, at 7:14 AM, [EMAIL PROTECTED] wrote: > > Hi , > dear all > I have a tricky problem about cake and jpgraph.I copy > the jpgraph libs to a subdir of my cake app.But everytime I want to > include some > of the jpgraph lib files in my cotrollers so that I can output some > image

about cake and jpgraph

2006-04-28 Thread [EMAIL PROTECTED]
Hi , dear all I have a tricky problem about cake and jpgraph.I copy the jpgraph libs to a subdir of my cake app.But everytime I want to include some of the jpgraph lib files in my cotrollers so that I can output some images, my cake framework crashes, and all I can see is a whole white pag