Jump to content


Photo

Call to undefined function ImageCreate() in...


  • Please log in to reply
3 replies to this topic

#1 AncientSage

AncientSage
  • Members
  • PipPipPip
  • Advanced Member
  • 56 posts

Posted 08 August 2006 - 08:03 PM

First, I know my code is fine, I ran it on another server. But when I switched the server, I'm getting an error trying to use ImageCreate(), the paths and such are defined, but the function just isn't working.

Could anyone tell me what to do about it? I'm guessing it involves editing of the php.ini file.

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 08 August 2006 - 08:11 PM

Do you have the GD library installed on your server?

Orio.
Think you're smarty?

(Gone until 20 to November)

#3 Chevy

Chevy
  • Members
  • PipPipPip
  • Advanced Member
  • 163 posts

Posted 08 August 2006 - 08:11 PM

When you get undefined function image* it means the gd library isnt being used. Check the php.ini file. Make sure the php_gd.dll isnt commented out. Restarting apache should result in the image functions working.

From: PHP.net

#4 AncientSage

AncientSage
  • Members
  • PipPipPip
  • Advanced Member
  • 56 posts

Posted 08 August 2006 - 08:17 PM

Yup, I do.

And I should note it's a linux server, so .dll won't be found.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users