tags:

views:

41

answers:

3

Hi,

I'm trying to put some graphics on a web page and at my prototype at the computer it's all working fine at the localhost. But now I uploaded the files to a server and I'm having a problem to plot some graphics. In my computer they are plotted, but on the server they are not.

I'm getting this error Fatal error: Call to undefined function ImageCreate() in /home/t1g01/phplot.php on line 248

Line 248

$this->img = ImageCreate($this->image_width, $this->image_height);

I'm using phplot, and I uploaded the files form phplot too. Can anyone help me ?

Sorry for any mistake in English and thank you in advance.

+5  A: 

This means your installation of php doesn't have the gd library installed/enabled.

http://www.php.net/manual/en/image.installation.php

Ben Rowe
+1  A: 

It seems that your GD library is not being used. Double check your php.ini file.

Russell Dias
+2  A: 

Your server most like does not have GD (the built in PHP image processing library) enabled. You can check this by looking for "GD" in the output of :

<?php
phpinfo();
?>

If not, check the PHP docs on how to enable it: http://www.php.net/manual/en/book.image.php

Mike Sherov