To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Install

Install Conversation regarding installation and upgrade of PHP

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-29-2000, 04:50 PM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
Installing the latest GD Library

Hi all,

I'm running PHP on WinNT and IIS. I would like to use the latest version of the GD Library in order to have the JPG support. My problem is this. I have no idea build the library from the source files that I downloaded from the GD site. I'd rather not go through the process of figuring out how to compile the source. Does anyone have the latest library precompiled for windows, or could someone, at the very least, give me some advice on the easiest way to solve my issue? I don't even know where to begin in terms of getting this thing compiled.

Thanks in advance for all your help.

Scott
Anon is offline   Reply With Quote
Old 06-29-2000, 05:39 PM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

It seems people line up for this question, I've got the very same problem as you.

Using also IIS and NT4. I've done some compiling and it worked, but I really don't know what I'm doing and GD support is not working at all.

I've seen GD libraries everywhere and they need additional libraries to be compiled. I've even found a php4 GD library (php_gd.dll) for version 4, but just putting it in my winnt/system32 directory didn't help much.

After you've done everything right, you should have a php.exe, php4ts.dll, php4isapi.dll and probably a new php_gd.dll and you should replace you php.exe and put the dll's in your system32 directory.

However, how the heck do you compile a new php.exe which supports gd, since all the project files don't seem to have the dll. Yet it is in the ext/gd directory of the source files.

Anyway, PLEASE let me know if you found the answer, I'm beginning to loose it ;-(

Anon is offline   Reply With Quote
Old 06-29-2000, 06:15 PM   #3
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

I've done it in linux, and it's not pretty.

I had to download the latest pnglib, jpeglib, AND gdlib and make them all by hand. Then I forcefully removed the same packages that RedHat had installed earlier (old versions) and then ran make install on all the ones I'd made.

After that I had to edit /etc/ld.so.conf to tell it where the .so files had been put by the different apps, and run ldconfig.

After that, the standard super long ./configure line of:

./configure --with-gd \
--with-jpeg \
--with-png

I don't remember if I had to put directories or not, I think php found the right .so files once I had forcefully de-installed them. (rpm --force -e libname)
Anon is offline   Reply With Quote
Old 06-29-2000, 06:39 PM   #4
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

Hi, this is an e-mail I received for this problem. I hope it's usefull for you.

Good luck

Sergio

"
I had the same probleme, and I try different solution only one works :

use the the php_gd.dll from download.swwwing.com with the core php software from the same site (under /php4/core download php4ts.dll and phpts.exe or php4isapi.dll)

phpts.exe replace php.exe (for cgi interface)
php4isapi.dll replace php4isapi.dll (for isapi interface)
php4ts.dll replace php4ts.dll

the ts in phpts.exe is for Tread Safe compilation who is requiered by the gd_lib.dll

I dont try the isapi module but the cgi one work perfectly with the php_gd.dll

after installation (and reboot) try this simple php script who generate a simple green box.
<?php
Header("Content-type: image/jpeg");
$im= ImageCreate(220,210);
$vert = ImageColorAllocate($im, 0, 255, 00);
ImageJpeg($im);
ImageDestroy($im);
?>

I hop this help you in your project

Vinc.

"
Anon is offline   Reply With Quote
Old 06-29-2000, 07:07 PM   #5
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

Hey thanks alot!

I've been to that site before, with this info I might just make it work.

(I hope!)
Anon is offline   Reply With Quote
Old 06-29-2000, 08:34 PM   #6
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

Well, I followed your lead, but couldn't get the thing working. My problems are now 2 fold. 1) Both the CGI and Isapi versions of php4 give me problems when I try to do file uploads. Next, I receive an error message when i try to load the cgi module with the php_gd.dll. What I really need is a compiled version of the latest GD library that will still work with php3... Any ideas?

Scott
Anon is offline   Reply With Quote
Old 06-29-2000, 10:10 PM   #7
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

The php_gd.dll I can used:
I use PHP4.0.0 download from www.php.net, and PHP 4.0.1dev downloaded from download.swwwing.com(use 'phpts.exe' rather than 'php.exe'). The php_gd.dll I used is also downloaded from download.swwwing.com.
It need a file 'zlib.dll', I put it in WINNT\SYSTEM32. The php_gd.dll support PNG, Jpeg & TTF. It works well.
My env is W2K+IIS5. I can use GD success in CGI mode of both version of PHP, but can't run in ISAPI mode of PHP. So I have to use PHP in CGI mode. I haven't test the newest PHP 4.0.1 from www.php.net.
Anon is offline   Reply With Quote
Old 06-30-2000, 12:24 AM   #8
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

i am using php3.0.6 for Window 98
and i followed the step which recommended by all of u... i downloaded php4ts.dll, php4isapi.dll, and phpts.exe and i put it in php folder..
but finally it give me error..
call to unsupported function
any one there giveme some advices??
thank you

cK
Anon is offline   Reply With Quote
Old 06-30-2000, 03:54 AM   #9
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
But what is this CGI ?

Okay, I'm about to try it out, but people keep talking about:

php.exe (for cgi interface)
php4isapi.dll (for isapi interface)

Can someone please tell me how I use the cgi interface on Win NT 4 with IIS 4, because I don't quite get it...

I'm a really that stupid? ;-)

Anon is offline   Reply With Quote
Old 06-30-2000, 08:49 PM   #10
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

Hi,

You say you use php3.0.6 ? This is what I did:

1. download.swwwing.com
2. Get the phpts.exe, php4ts.dll, php4isapi.dll from core directory
3. Went to the modules directory and downloaded all the DLL files, but I guess I only needed php_gd.dll, php_ldap.dll, php_imap.dll, php_zlib.dll and zlib.dll,
4. Stopped IIS services and removed all old PHP files
5. Put all the files in my c:\php4 directory (just to be sure)
6. Put all DLL files in my c:\winnt\system32 directory (for you that would be c:\system32 I guess)
7. Rebooted and (if needed) restart IIS

It worked perfectly. However, the example from the php manual (createimagefromgif) didn't work, since it will only support JPG, PNG and TIF (I think). So I changed the example to make it look for my JPG and searched around for JPEG routines to substitue the GIF routines from the manual.

After that, I followed Brett's wonderful advice to use the CGI version, but it worked even before. They say the CGI version is more reliable than the PHP4ISAPI.DLL I was using before.

BTW, I got an error when I refered to my zlib.dll in the .ini file when I removed reference to it (and only opted php_gd.dll) it worked.

I hope this works for you too. Basically I'd say switch from php3 to php4.

Anon is offline   Reply With Quote
Old 07-02-2000, 08:45 AM   #11
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

I tried everything said here but i still have a problem. GD still wont load 'cause there are lib files missing. I now have zlib, imap and ldap but don't you need libpng and jpeg? If so, where can i download dll's.
Anon is offline   Reply With Quote
Old 07-02-2000, 10:52 AM   #12
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

Put the zlib.dll and the php_gd.dll in the
in your winnt\system32 directory. You don't need other library. They libpng,... are linked in the php_gd.dll.

Add to your php.ini the following line:
extension=php_gd.dll
and all would be fine.


Good luck


Sergio
Anon is offline   Reply With Quote
Old 07-02-2000, 01:43 PM   #13
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

I have copied the dlls and it is working correctly yeeeha.
Only problem is that every time I call an "Image" function I get a warning:
"Unknown list entry type in request shutdown"

Anybody know why this is happening?
Anon is offline   Reply With Quote
Old 07-02-2000, 11:04 PM   #14
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

i have copied all the dll file into the php directory... but still cannot works..why??

cK
Anon is offline   Reply With Quote
Old 07-14-2000, 05:33 AM   #15
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Installing the latest GD Library

Hi there,

so I got this script from Sergio working:

<?php
Header("Content-type: image/jpeg");
$im= ImageCreate(220,210);
$vert = ImageColorAllocate($im, 0, 255, 00);
ImageJpeg($im);
ImageDestroy($im);
?>

I simply installed the "php-4.0.1pl2-Win32.zip" version from this site on my PWS.
I then changed the php.ini entries to
extension_dir = c:/php
which is my php-directory and activated
extension=php_gd.dll

After that, I replaced all files in the php-directory with those from download.swwwing.com/php4/modules/
and additionaly took the files
php4isapi.dll
php4ts.dll
phpts.exe
from the core-directory, renamed phpts.exe to php.exe and thats it.

The problem that remains, is that imagecreategif still doesn't seem to work. I also wonder if I must put an "@" before the function call since then the parser doesn't return the "No GIF-support" Error.

Anyone there to help me?!?

Anon is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 08:40 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.