Loading the GD module in CLI

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
textheavy
Forum Newbie
Posts: 6
Joined: Fri Mar 11, 2005 12:16 am

Loading the GD module in CLI

Post by textheavy »

I have a short program that needs to use GD.

GD is enabled on my server.

GD is loaded just fine when I call GD functions from a file parsed by a browser, but when I run a file as a CLI, the GD function fails.

How do I load the GD module when I am running a CLI program?
textheavy
Forum Newbie
Posts: 6
Joined: Fri Mar 11, 2005 12:16 am

Post by textheavy »

Ah well...Never mind. It turns out that the Entropy.ch PHP install for Mac OS X has two different php.ini files. One for Web and one for command-line based scripts.

I'll go bother them on their own discussion forum.

After 8 hours of trying to figure this out, I think my eyes are bleeding.
Post Reply