Forum Moderators: coopster

Message Too Old, No Replies

PHP image functions

Host updated PHP, now imagecreatefromjpeg() undefined

         

Birdman

10:18 pm on Mar 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello,

I just got a call from a client saying that their image upload and thumbnail creator script is throwing errors.

So I run phpinfo() [php.net] and notice that they updated to PHP [php.net] version 4.3.1 on March 8.

I guess they didn't install the GD image library this time around, so my imagecreatefromjpeg() [php.net] function gets the error "call to an undefined function". I also tried switching it to imagecreate() [php.net] and get the same result.

Is there some other reason that it is not working, or is it the hosts fault? It has worked fine up until this point.

Thanks for any advice or insight!

aaronc

11:37 pm on Mar 11, 2003 (gmt 0)

10+ Year Member



You will need to compile PHP with the GD library of image functions for this to work. GD and PHP may also require other libraries, depending on which image formats you want to work with.

That's from the main php.net link to the Image functions.
Ask the host to include the GD Library and you should be alright.

Birdman

11:40 pm on Mar 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks aaronc. They actually replied promptly this time(Maybe because I posted on their forum how unhappy I was). They say they are going to correct it tonight :)