RE: PHP3 with GD support

2000-12-24 Thread Aprosi SL

I find a solution: compile a new version of gd.so!

In short terms, a wrote:

cd /usr/src
apt-get source php3
cd php
./configure --with-gd --with-jpeg-dir=/usr/include
--with-ttf=/usr/include/freetype
make(<-- this is optional, I suppose)
mkdir apache
cd apache
gcc -g -O2 -shared -fPIC -DCOMPILE_DL=1 -I.. -I.
-I/usr/include/apache-1.3 -I/usr/include/freetype -o gd.so
../functions/gd.c ../functions/gdcache.c ../functions/gdttf.c
-lgd -lttf  -lc
mv gd.so /usr/lib/php3/apache

This generate a new version of gd.so with png,jpeg & truetype support.

You can look a example at:

http://www.pucela.com/php/text1.php3




And with a little work I succeed to compile a version with libgd-gif
support plus (added -lgd-gif to gcc and

#define HAVE_GD_GIF 1

to config.h)

---8<---
/ Asesora y Proveedora   [EMAIL PROTECTED]
\ de Servicios de Internet, S.L. [EMAIL PROTECTED]
---8<---



--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RV: PHP3 with GD support

2000-12-22 Thread Aprosi SL

Never one use APACHE+PHP+GD

What is the reason for not to include GD support at libphp3 (apache module)
???

With php3-gd??? how???

---8<---
/ Asesora y Proveedora   [EMAIL PROTECTED]
\ de Servicios de Internet, S.L. [EMAIL PROTECTED]
---8<---


-Mensaje original-
De: Joaquin Ferrero [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 28 de noviembre de 2000 23:06
Para: [EMAIL PROTECTED]
Asunto: PHP3 with GD support


I upgrade to:

php3 v3:3.0.18-5,
apache 1.3.12-2.1
libgd-gif1 1.3-2 and
libgd1 1.8.3-6

but only can get PHP 3 Warnings:

ImagePng: No PNG support in this PHP build in /var/www//php/text1.php3
on
line 8

and no gif, jpeg and TTF support.

phpinfo() show:

Configure command: ../configure '--with-apxs=/usr/bin/apxs'
'--disable-debug'
'--with-filepro' '--with-config-file-path=/etc/php3/apache' '--with-zlib'
'--without-gd' '--enable-sysvsem' '--enable-sysvshm' '--with-yp'
^^
'--with-gettext' '--with-ftp'

then... where is the GD support? It is removed!!!

---8<---
/ Asesora y Proveedora   [EMAIL PROTECTED]
\ de Servicios de Internet, S.L. [EMAIL PROTECTED]
---8<---



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]



--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]