When I recently went through a system upgrade to Fedora Core 3, I had to upgrade php. Then, run down the required libraries. All was installed and php 'knows' about everything it should. Including gd. But, when I execute a script off the command line, I get
PHP Fatal error: Call to undefined function: imagecreate() in
/home/user1/bin/tinyplot.php on line 45
What's bugging me about this is a phpinfo reveals this:
configured with --with-gd=shared, --enable-gd-native-ttf.
I've read about the extension tag in the php.ini, but nothing much about it in *nix, mostly Win32. When I tried to add the extension tag in the php.ini, I barked that it wasn't a valid php extension. When I do a 'locate libgd', I get the following return:
/usr/lib/libgd.so.2.0.0
/usr/lib/libgd.so.2
/usr/lib/php4/libgd.so
/usr/local/lib/libgd.a
/usr/local/lib/libgd.so.2
/usr/local/lib/libgd.so
So, the one in /usr/lib/php4/ should be the appropriate one for php, so waht gives? Suggestions on how to get this rectified?
Thanks,
monger