I want to use the imagecreate function in PHP. I know it is a function from
the GD libary. Now I'm looking for many days how PHP can call this libary
function. I'm using SuSe 8.1 with PHP 4.2.2 and the GD libary 1.8.4 they are
installed from the RPM package. So, I did not compile the source. When I ask
the phpinfo () this is the result
'./configure' '--prefix=/usr/share' '--datadir=/usr/share/php'
'--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include'
'--with-_lib=lib' '--with-config-file-path=/etc'
'--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-bcmath'
'--enable-calendar' '--enable-ctype' '--enable-dbase'
'--enable-discard-path' '--enable-exif' '--enable-filepro'
'--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf'
'--enable-gd-native-ttf' '--enable-inline-optimization'
'--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring'
'--enable-memory-limit' '--enable-safe-mode' '--enable-shmop'
'--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm'
'--enable-track-vars' '--enable-trans-sid' '--enable-versioning'
'--enable-wddx' '--enable-yp' '--with-bz2' '--with-dom=/usr/include/libxml2'
'--with-ftp' '--with-gdbm' '--with-gettext' '--with-gmp' '--with-imap=yes'
'--with-iodbc' '--with-jpeg-dir=/usr' '--with-ldap=yes' '--with-mcal=/usr'
'--with-mcrypt' '--with-mysql=/usr' '--with-ndbm' '--with-pgsql=/usr'
'--with-png-dir=/usr' '--with-qtdom=/usr/lib/qt2' '--with-snmp'
'--with-t1lib' '--with-tiff-dir=/usr' '--with-ttf' '--with-freetype-dir=yes'
'--with-xml' '--with-xpm-dir=/usr/X11R6' '--with-zlib=yes'
'--with-gd=shared' '--with-openssl' '--with-curl' '--with-swf=./dist/'
'--with-imap-ssl' '--enable-xslt' '--with-xslt-sablot' '--with-mm'
'--with-apxs=/usr/sbin/apxs' 'i586-suse-linux'
I looks that the GD module is loaded, but the imagecreate function does
still not work.
Can someone help met how to setup the configuration file httpd.conf and
php.ini ?. May be that will help me. For you information I dumped the
configuration below :
php.ini
444 [extension section]
445 extension = gd.so
446 ; end of extension section
httpd.conf
264 LoadModule gd_module /usr/lib/apache/mod_gd.so
312 AddModule mod_gd.c
Many thanks in advance
Richard