Dave M G wrote:
Bob, Ben, David, Robert,
Thank you all for responding.
Just to recap, I'm trying to find out why I can write text into a PNG
image on one server, but not on another.
After much playing around, I have a list of the different configuration
modules installed on the two servers. The lists below are lists of the
modules *not* in common between them.
From what I can see, none of the modules that the behaving server have
that the misbehaving server doesn't has anything to do with fonts or
images. So my suspicion is starting to be that maybe the problem is not
in the PHP set up, but elsewhere.
Before I move on to other possible solutions, I'd like to double check
with more experienced eyes. Do any of the modules here affect text in
PNG files?
Misbehaving Server:
'--enable-ftp'
'--enable-magic-quotes'
'--enable-mbstring'
'--enable-pdo'
'--enable-soap'
'--enable-zip'
'--with-apxs2'
'--with-curl'
'--with-curl=/usr/local/lib'
'--with-freetype-dir=/usr/local/lib'
'--with-mcrypt'
'--with-mhash'
'--with-openssl'
'--with-pear'
'--with-pdo-mysql'
'--with-pdo-sqlite'
'--with-sqlite'
'--with-xmlrpc'
'--with-unixODBC=/usr'
Behaving Server:
'--disable-pdo'
'--enable-libxml'
'--prefix=/usr/local'
'--with-apxs2=/usr/local/apache/bin/apxs'
'--with-freetype-dir=/usr'
'--with-imap=/opt/php_with_imap_client/'
'--with-imap-ssl=/usr'
'--with-libxml-dir=/opt/xml2/'
'--with-mime-magic'
'--with-mysql-sock=/var/lib/mysql/mysql.sock'
'--with-xpm-dir=/usr/X11R6'
And, just to note, *both* servers have the following:
* '--with-gd'
* '--with-ttf'
* '--enable-gd-native-ttf'
These are the command line arguments used to enable/disable extensions.
They don't guarantee that the extension is actually enabled though.
Check the extensions in phpinfo() output. Each properly enabled
extensions should have a little header. You are also trying to
manipulate a PNG file... I believe that relies on libpng-dev and may
require --with-png-dir=/usr/lib. I usually compile PHP myself so I'm not
sure what the defaults are for various distros.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php