RE: [PHP] GD & PHP
Try to add --with-jpeg, but probably you need to install some libraries, like libjpeg (http://freshmeat.net/projects/libjpeg/?topic_id=105%2C809) -Mensaje original- De: Mike At Spy [mailto:[EMAIL PROTECTED] Enviado el: jueves, 28 de agosto de 2003 18:22 Para: Javier Tacon; [EMAIL PROTECTED] Asunto: RE: [PHP] GD & PHP I get an error about png libraries not found, though my configure line only adds --with-gd to it from my previous configure (pretty recent). Do I need png and/or some sort of jpeg libraries installed first? I don't mention png in my configure line: ./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-gettext=/usr --e nable-safe-mode --with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin --with-zlib --enable-magic-quotes --with-regex=system --with-ttf --with-dba --with-gdbm --enable-mbstring --enable-mbstr-enc-trans --enable-track-vars - -enable-wddx=shared --enable-mm=shared --enable-xml --enable-ftp --disable-d ebug --with-libdir=/usr/lib --with-db3 --with-interbase=shared --with-pgsql= shared --with-ldap --with-pdflib=shared --with-mcrypt --with-gd Thanks, -Mike > -Original Message- > From: Javier Tacon [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2003 11:33 AM > To: Mike At Spy; [EMAIL PROTECTED] > Subject: RE: [PHP] GD & PHP > > > > You need to compile PHP with the option --with-gd in the configure step. > > The function is imagecreatefromjpeg() > > > -Mensaje original- > De: Mike At Spy [mailto:[EMAIL PROTECTED] > Enviado el: jueves, 28 de agosto de 2003 17:32 > Para: [EMAIL PROTECTED] > Asunto: [PHP] GD & PHP > > > > Is there anything special I have to do to enable GD when using PHP 4.3.2? > > I'm getting an error of: > > Fatal error: Call to undefined function: imagecreatefromjpeg() in > /home/sites/site37/web/photos/functions.php on line 594 > > When I use the imagecreatefromjpeg() function. Is it not usable with gd? > Should I be using imagecreatefromgd()? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] GD & PHP
I get an error about png libraries not found, though my configure line only adds --with-gd to it from my previous configure (pretty recent). Do I need png and/or some sort of jpeg libraries installed first? I don't mention png in my configure line: ./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-gettext=/usr --e nable-safe-mode --with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin --with-zlib --enable-magic-quotes --with-regex=system --with-ttf --with-dba --with-gdbm --enable-mbstring --enable-mbstr-enc-trans --enable-track-vars - -enable-wddx=shared --enable-mm=shared --enable-xml --enable-ftp --disable-d ebug --with-libdir=/usr/lib --with-db3 --with-interbase=shared --with-pgsql= shared --with-ldap --with-pdflib=shared --with-mcrypt --with-gd Thanks, -Mike > -Original Message- > From: Javier Tacon [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2003 11:33 AM > To: Mike At Spy; [EMAIL PROTECTED] > Subject: RE: [PHP] GD & PHP > > > > You need to compile PHP with the option --with-gd in the configure step. > > The function is imagecreatefromjpeg() > > > -Mensaje original- > De: Mike At Spy [mailto:[EMAIL PROTECTED] > Enviado el: jueves, 28 de agosto de 2003 17:32 > Para: [EMAIL PROTECTED] > Asunto: [PHP] GD & PHP > > > > Is there anything special I have to do to enable GD when using PHP 4.3.2? > > I'm getting an error of: > > Fatal error: Call to undefined function: imagecreatefromjpeg() in > /home/sites/site37/web/photos/functions.php on line 594 > > When I use the imagecreatefromjpeg() function. Is it not usable with gd? > Should I be using imagecreatefromgd()? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] GD & PHP
Cool - thanks. :) -Mike > -Original Message- > From: Javier Tacon [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2003 11:33 AM > To: Mike At Spy; [EMAIL PROTECTED] > Subject: RE: [PHP] GD & PHP > > > > You need to compile PHP with the option --with-gd in the configure step. > > The function is imagecreatefromjpeg() > > > -Mensaje original- > De: Mike At Spy [mailto:[EMAIL PROTECTED] > Enviado el: jueves, 28 de agosto de 2003 17:32 > Para: [EMAIL PROTECTED] > Asunto: [PHP] GD & PHP > > > > Is there anything special I have to do to enable GD when using PHP 4.3.2? > > I'm getting an error of: > > Fatal error: Call to undefined function: imagecreatefromjpeg() in > /home/sites/site37/web/photos/functions.php on line 594 > > When I use the imagecreatefromjpeg() function. Is it not usable with gd? > Should I be using imagecreatefromgd()? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] GD & PHP
You need to compile PHP with the option --with-gd in the configure step. The function is imagecreatefromjpeg() -Mensaje original- De: Mike At Spy [mailto:[EMAIL PROTECTED] Enviado el: jueves, 28 de agosto de 2003 17:32 Para: [EMAIL PROTECTED] Asunto: [PHP] GD & PHP Is there anything special I have to do to enable GD when using PHP 4.3.2? I'm getting an error of: Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/sites/site37/web/photos/functions.php on line 594 When I use the imagecreatefromjpeg() function. Is it not usable with gd? Should I be using imagecreatefromgd()? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP]GD, PHP and Apache troubles
hello all, Rasmus, thanx for the advice you gave me :) I had to alter two of the Makefiles and the libphp4.module file. but now, finnally, it worked :D thank you very much, Kees Hoekzema [EMAIL PROTECTED] -Oorspronkelijk bericht- Van: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Verzonden: Thursday, January 18, 2001 7:18 PM Aan: Kees Hoekzema CC: [EMAIL PROTECTED] Onderwerp: Re: [PHP]GD, PHP and Apache troubles > gcc -DLINUX=2 -I/root/source/php-4.0.4 -I/root/source/php-4.0.4/main -I/roo > t/source/php-4.0.4/main -I/root/source/php-4.0.4/Zend -I/root/source/php-4.0 > .4/Zend -I/root/source/php-4.0.4/TSRM -I/root/source/php-4.0.4/TSRM -I/root/ > source/php-4.0.4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` > \ > -o httpd buildmark.o modules.o modules/standard/libstandard.a > modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a > lib/expat-lite/libexpat.a -rdynamic -Lmodules/php4 -L../modules/php4 -L../. > ./modules/php4 -lmodphp4 -ldl -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -ln > sl -lresolv -lm -lcrypt Hrm.. Interesting. -lpng should be listed after -lgd on that link line. Find your libphp4.module file which PHP copied to your Apache tree and edit the LIBS line and switch the order of those two. Let me know if that fixes it. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP]GD, PHP and Apache troubles
> gcc -DLINUX=2 -I/root/source/php-4.0.4 -I/root/source/php-4.0.4/main -I/roo > t/source/php-4.0.4/main -I/root/source/php-4.0.4/Zend -I/root/source/php-4.0 > .4/Zend -I/root/source/php-4.0.4/TSRM -I/root/source/php-4.0.4/TSRM -I/root/ > source/php-4.0.4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` > \ > -o httpd buildmark.o modules.o modules/standard/libstandard.a > modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a > lib/expat-lite/libexpat.a -rdynamic -Lmodules/php4 -L../modules/php4 -L../. > ./modules/php4 -lmodphp4 -ldl -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -ln > sl -lresolv -lm -lcrypt Hrm.. Interesting. -lpng should be listed after -lgd on that link line. Find your libphp4.module file which PHP copied to your Apache tree and edit the LIBS line and switch the order of those two. Let me know if that fixes it. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]