473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

use of gd libarary in php

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

Jul 17 '05 #1
0 2258

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Robin Cull | last post by:
Hi all, I'm writing a script that needs to do lookups on the UNIX passwd and groups file on textual usernames/group names and return numeric UID/GID. Something that gives access to the C...
1
by: Dragon A. Wisard | last post by:
If someone here has experince w/ PIL please tell me how im.paste(image, box,mask) works. I don't have much experience working w/ image files, so I don't know exactly what I'm doing, but I keep...
2
by: Andrew | last post by:
Hi, friends, I need to raise certain events in my VC# windows control library. Any reference paper or sample source code for help? Thanks a lot...
59
by: Mr. x | last post by:
Hello, I need a good help/tutorial for VB, please (I preffer *.chm help file). Also : for the function : now() in VBScript for getting the current time, what is the counterpart function of VB ?...
2
by: Smiley | last post by:
I've looked up several documents online to try and figure this out. So far I've seen that with the GD library I can use a background image and modify it by adding text and shapes. What I would...
0
by: Ravi | last post by:
Hi, I have C# windows control libarary (Dll), which I could able to load them into browser using <objecttag with following syntax (In aspx page) and user able to see the page properly. ...
0
by: Ravi | last post by:
Hi, I have C# windows control libarary (Dll), which I could able to load them into browser using <objecttag with following syntax (In aspx page) and user able to see the contolr properly. ...
1
by: sandeepsandeep | last post by:
Hi, I m new in Curl. I have install the curl libarary in my PC but this is not work i have also change in php.ini file but still shows error cur_init() is not exit; Any Idea?? Thanks...
5
by: Jon Slaughter | last post by:
I wrote a routine to replace Math's Exp method but it turns out to be almost 2x slower ;/ (well, actually its about 1.5x in release) I'm essentially using a lookup table and interpolate between...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.