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 > Misc Help > Windows Help

Windows Help Help with the Windows operating system

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-05-2000, 12:58 AM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
how setup GD'function of php4(at window200)

i have the lastest php_gd.dll of php4,but when i have modified php.ini and copied php_gd.dll to winnt\system32\,i found php4 isn't work.why ?and how i should do???
Anon is offline   Reply With Quote
Old 08-05-2000, 03:24 AM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

i have installed gd lib on win98,you can try on win 2000.
first you have to download all the dlls from
swwwing.com /php4 then replace them with in your php4 foler. use phpts.exe instead of php.exe.
place mvsr.dll and php4ts.dll
in wint/system
and then try it.
if you still gets problem then ask me
Anon is offline   Reply With Quote
Old 08-05-2000, 03:26 AM   #3
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

i have installed gd lib on win98,you can try on win 2000.
first you have to download all the dlls from
swwwing.com /php4 then replace them with in your php4 foler. use phpts.exe instead of php.exe.
place mvsr.dll and php4ts.dll
in wint/system
and then try it.
if you still gets problem then ask me
Anon is offline   Reply With Quote
Old 08-05-2000, 03:26 AM   #4
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

i have installed gd lib on win98,you can try on win 2000.
first you have to download all the dlls from
swwwing.com /php4 then replace them with in your php4 folder. use phpts.exe instead of php.exe.
place mvsr.dll and php4ts.dll
in wint/system
and then try it.
if you still gets problem then ask me
Anon is offline   Reply With Quote
Old 08-05-2000, 05:38 AM   #5
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

hello rohit,
i'm not able to find gd dll's for windows, and the url that u specified does not exist.
can u please elaborate a little more about the website or do u know any mirror site,where i can find these dll's.
Anon is offline   Reply With Quote
Old 08-05-2000, 07:24 AM   #6
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

check this
http://download.swwwing.com/php4/

Anon is offline   Reply With Quote
Old 08-07-2000, 05:13 AM   #7
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
it works only the first time .......

i download that gd dll's from
swwwing.com /php4 and do all the things as u said.the phpinfo shows gd's work.

but the gd works only the first time i run png script . after that ,it allways try to download the png_file from the target script.
what's wrong?
what should i do?
Anon is offline   Reply With Quote
Old 08-07-2000, 06:43 AM   #8
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

I've done everything but it's not working at all.
Apache 1.3.11, php4 on W98
Could you mail me exactly what I have to do?

Thank you very much
Anon is offline   Reply With Quote
Old 08-07-2000, 09:09 AM   #9
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

I have already posted all the steps to install gd lib on win98(Apache as server).
explain me how you proceed step by step.
rohit
Anon is offline   Reply With Quote
Old 08-07-2000, 09:11 AM   #10
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

I have already posted all the steps to install gd lib on win98(Apache as server).
explain me how you proceed step by step.
rohit
Anon is offline   Reply With Quote
Old 08-07-2000, 09:27 AM   #11
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

Hi

I downloaded all files from http://download.swwwing.com/php4/modules/
and instaled to my php4 directory. Then I also downloaded phpts.exe and php4ts.dll from http://download.swwwing.com/php4/core/.
Next step was that I moved msvcrt.dll and php4ts to c:\windows\system directory.
Also I made changes to httpd.conf file
Action application/x-httpd-php "/php/phpts.exe". I'm trying to run litle php script
<?

header("Content-type: image/gif");
$string = implode($argv, " ");
$im = ImageCreateFromGif("headera.gif");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im) -7.5*strlen($string))/2;
ImageString($im, 3, $px, 9, $string, $orange);
ImageGif($im);
ImageDestroy($im);

?>
but I get error message something like this
<b>Warning</b>: ImageCreateFromGif: No GIF support in this PHP build in <b>c:\web\test\gdtest.php</b> on line <b>5</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid Image resource in <b>c:\web\test\gdtest.php</b> on line <b>6</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid Image resource in <b>c:\web\test\gdtest.php</b> on line <b>7</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid Image resource in <b>c:\web\test\gdtest.php</b> on line <b>8</b><br>
<br>
<b>Warning</b>: ImageGif: No GIF support in this PHP build in <b>c:\web\test\gdtest.php</b> on line <b>9</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid Image resource in <b>c:\web\test\gdtest.php</b> on line <b>10</b><br>

Can you help me ?

Thank You
Anon is offline   Reply With Quote
Old 08-08-2000, 02:46 AM   #12
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)


we are using 1.8+ gd lib which does not
support gif images
so use jpg.
try it
<?

header("Content-type: image/jpeg");
$string = implode($argv, " ");
$im = ImageCreateFromJpeg("headera.jpg");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im) -7.5*strlen($string))/2;
ImageString($im, 3, $px, 9, $string, $orange);
ImageJpeg($im);
ImageDestroy($im);

?>
best of luck
Anon is offline   Reply With Quote
Old 08-08-2000, 03:04 AM   #13
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

Thank You !!!!

Now it's working !!!!

Do you know where gd lib will support gif images ? I'm asking because 90% of images I'm using are in gif format.

Thanks again !!!!

DAN
Anon is offline   Reply With Quote
Old 08-08-2000, 03:17 AM   #14
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

i don't tried for that but u can download
1.6 gd lib from bourtel.com and then compile it.
Anon is offline   Reply With Quote
Old 08-08-2000, 03:31 AM   #15
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: how setup GD'function of php4(at window200)

can u give me url to that 1.6 version?
bourtel.com is not working
Dan
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 04:29 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.