Page 1 of 1

Loading the GD module in CLI

Posted: Fri Mar 11, 2005 3:04 am
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?

Posted: Fri Mar 11, 2005 4:27 am
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.