to GD or not to GD, that is my question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

to GD or not to GD, that is my question

Post by malcolmboston »

last night i thought i would divulge into the wacky world of PHP imaging.

So after searching to see if i had it installed, (in the PHP.ini) i started work on it, however im not actually too sure if it is installed or not

GD is in my php.ini as GD.DLL so it is seemingly available to me however when i use load_resources() it isnt listed

also, when i use simple commands like imagecreate() it says the function is undefined, however i did use one GD function and it did create a picture, in a sense anyway, it created a picture block with an X in the middle

Is it installed do you think or not?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have you uncommented the line for gd.dll? The module doesn't sound like it's loaded so you won't be able to do much.

Mac
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

ah sorry, thats probably my problem, i did a find / replace for GD.DLL and it came back as a result i never thought it may be commented out :roll:
Post Reply