Jump to content

jpgraph error


mtgriffiths

Recommended Posts

Hey all,

 

I am using jpgraph to create a bar chart using data from my database.

 

It works fine when i am running it on localhost but when i transfer it onto my webspace i recieve the following error:

 

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/29/d239295547/htdocs/DDWA4/jpgraph/src/jpgraph.php on line 278

 

As it is to do with jpgraph i am stumped as i did not write this myself.

 

The line that the error is pointing to is:

 

277  class JpgTimer {

278  private $start, $idx;

 

Has anybody encountered this error before or know how to sort it out

 

Thanks in advance

 

Matthew

Link to comment
https://forums.phpfreaks.com/topic/97990-jpgraph-error/
Share on other sites

I downloaded the jpgraph file and the other files needed off the internet from a website that was sent to me. The jpgraph file is over 7000 lines of code so im not too sure if its just that but thats the error that i am getting.

 

Doesnt seem like im being to much help to what the problem is but as im completly new to jpgraph only using it for the first time today i am unsure.

 

The hosting company that i am using supports both php 4 and 5. I will check to see what version of php i am using and then get back.

 

thanks again

Link to comment
https://forums.phpfreaks.com/topic/97990-jpgraph-error/#findComment-501370
Share on other sites

Edit: Or as rhodesa states, a php4 problem.

 

(Here it is again) - The end of life of php4 was announced 13-Jul-2007. The final bug fixes in php4 were released 03-Jan-2008. Php4 is a dead product. Everyone should have already made the switch to php5 or have a short term schedule in place for doing so.

 

If you have php5 available, change over to it.

Link to comment
https://forums.phpfreaks.com/topic/97990-jpgraph-error/#findComment-501374
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.