imagecopyresampled and imagecopyresized

A

Anonymous

Guest
i have a script that needs imagecopyresampled, but when i use it, i get and error that sais that its a call it an undefined function. Next, i tried imagecopyresized, but it sais the same thing. I have PHP Version 4.3.1, and Apache/1.3.27. Any ideas?
 
4.3.0 and thus 4.3.1 were shipped (umm distroed) with GD2.0.4 which accomodates imagecopyresampled.

If you are getting an undefined func return, I'd guess your host has disabled GD - probably through prior misuses and Thomas's snags with memory allocation.
 
this is my own personal server, so how would i enable GD then?
 
I had to download a php_gd2.dll (just ask and I'll email it to you) and then edit the line in php.ini where:

Code:
;extension=php_gd2.dll
to
Code:
extension=php_gd2.dll
 
thanks for your help Xerpher, but i found a much simpler way to make preview of images (and a pretty obvious way actually), i just did this <img src = whatever.jpg height = 120 width = 120>
 
But Xerpher,

If i delete the ; from the
Code:
;extension=php_gd2.dll
line i get another error

:?

have a nice day
 
Did you put the php_gd2.dll file in your php directory like I told you to?
 
Back
Top