Pages: Previous12
Current Page: 2 of 2
Re: Unable to configure php_gd2.dll in wamp
Posted by: malwin23 (---.ztpnet.pl)
Date: February 24, 2007 12:40AM

Same problem nothing happend don't recognize any functions of gd2.
restarted 5 times change the extension in php.ini. Nothing.

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: yfastud (---.cable.mindspring.com)
Date: February 24, 2007 01:06AM

Quote

I search all (one) php.ini in windows and delete it.
Seem you forgot about registry?
Quote

Ok i will install Wamp 1.6.0 version let see what happend.
Suggest 1.6.5 which version I'm using now and very stable, at leat in my eyes

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)
[wp.jlbn.com] (testing WordPress 2.1)
[ws.jlbn.com] (testing WebSpell 4.01.02)

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: raxsv (---.vivo.cz)
Date: February 26, 2007 10:50AM

Right now I'm testing WAMP 1.6.5 and its the same. Nothing changed.
For the record, I did uninstall previous version (it was 1.7.0 and 1.6.6 before) and checked if is not any php.ini in windows and delete(rename) folder that remained after WAMP uninstall.

Maybe its only some minor error I made. But I'm not aware of anything like that :-(

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: yfastud (72.236.169.---)
Date: February 26, 2007 01:36PM

I'm a very clumsy coder so I can't have any comment about coding, but it just remind me something. I tried to test captcha image which gave similar error, but it still work fine when install some apps that come w/ captcha image such as phpbb2, phpnuke, so on; therefore, I think there's something not right w/ my codes. Similarly, I think you should check your code if it working properly. Just my 2 cents.

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)
[wp.jlbn.com] (testing WordPress 2.1)
[ws.jlbn.com] (testing WebSpell 4.01.02)

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: BirdOPrey5 (207.97.186.---)
Date: March 23, 2007 04:17PM

I am having the same issue.

I just installed the latest WAMP
Windows 2003 Server

I transfered over a number of PHP scripts I had on a different Apache2 server and all worked well the last couple weeks, now I am experimenting with some graphic manipulation, or at least trying to.

I enabled the GD library first manually, then by simply using the check mark in the WAMP control panel on php_gd2

The entire code of what I'm trying is:

<?php
header("Content-type: image/png"winking smiley;
$string = "Text";
$im = imagecreatefrompng("images/button1.png"winking smiley;
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>

No blank lines or spaces either before or after the code.

When I go to the URL I get:
Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\mcmirror\imgtest.php:1) in C:\wamp\www\mcmirror\imgtest.php on line 2
&#65533;PNG  IHDR,,&#65533;"&#65533;IDATx&#65533;&#65533;&#65533;AJ&#65533;P@Q+]&#65533;[p &#65533;&#65533;&#65533;&#1794;&#65533;&#65533;&#65533;&#65533;'&#65533;B&#65533;&#65533;&#883;&#65533;&#65533;&#65533;' &#65533;\^&#65533;9&#65533;&#65533;&#65533;'&#65533;&#65533;\?<:BL&#65533;!&#65533;D1BL&#65533;!&#65533;D1BL&#65533;;&#65533;&#65533; /oW+&#65533;&#65533;&#65533;&#65533;&#65533;o&#65533;"!&#65533;=&#65533;&#65533;#&#65533;!&#65533;I&#65533;&#65533;{&#65533;&#65533;x&#65533;&&#6553 SqI&#65533;&#65533;&#65533;IEND&#65533;B`&#65533;

Any ideas?

Thanks

Oh and when I do the var dump I get:
array(12) { ["GD Version"]=> string(27) "bundled (2.0.28 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(true) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(false) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }



Post Edited (03-23-07 16:18)

-Joe D

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: BirdOPrey5 (207.97.186.---)
Date: March 23, 2007 04:34PM

OK, I just checked, I get the same error even when I try to redirect the browser using just:

<?php
header("Location: [www.google.com"]winking smiley;
exit;
?>

So the error isn't related to the GD library, but still a problem just the same.



-Joe D

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: DJ_MELERIX (---.cm.vtr.net)
Date: March 26, 2007 07:23AM

Same trouble sad smiley

Any solution ?

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: CyberSpatium (71.237.217.---)
Date: March 26, 2007 09:20AM

BirdOPrey5, run this phpinfo() code and see if gd2 is located in the result. if not, gd2 support is not enabled. you will need to enable it. note also anytime you edit your php.,ini or httpd.conf file you need to restart apache for the new setting to take effect.

<?php

phpinifo();

?>




CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Please visit my latest website Clarify Loans:
ClarifyLoans.com

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: BirdOPrey5 (207.97.186.---)
Date: March 26, 2007 04:47PM

I do not see mention of "gd2" in the output of the phpinfo page- I used "Find on Page" to make sure I didn't miss it anywhere. Where would it show up?

However the "php_gd2" line is checked/enabled in WAMP under PHP Settings-
and var dump I get does seem to show it is working.

So far no solution, even when I attempt to modify the headers without any graphic manipulation.



-Joe D

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: CyberSpatium (71.237.217.---)
Date: March 26, 2007 10:00PM

to verify it is installed correctly open up your php.ini file

left click on the wamp tray icon menu -> config files -> php.ini

find:
;extension=php_gd2.dll

remove the simicolon in front to enable it, so change it to:
extension=php_gd2.dll

save the file and restart apache for the new setting to take effect.


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Please visit my latest website Clarify Loans:
ClarifyLoans.com

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: BirdOPrey5 (207.97.186.---)
Date: March 27, 2007 09:44PM

Confirmed
The line was correctly set as:

extension=php_gd2.dll

(no semi colin)

And confirmed that php_gd2.dll is in the wamp/php/ext directory- file size 929KB.

And the services (as well as the whole machine) have been restarted several times.



-Joe D

Options: ReplyQuote
Re: Unable to configure php_gd2.dll in wamp
Posted by: BirdOPrey5 (207.97.186.---)
Date: March 27, 2007 09:57PM

OK, one problem worked out-
I had to enable Output Buffering (select it from the PHP Settings of the WAMP application) and now I CAN modify the headers as much as I want-
I can get the location to change anyway as needed.

However my original code,
<?php
header("Content-type: image/png"winking smiley;
$string = "Text";
$im = imagecreatefrompng("images/button1.png"winking smiley;
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>

Still just gives me a "Red X' when I put the url directly into the browser (http://myserver/imgtest.php)

And yes, the file button1.png does exist.



Post Edited (03-27-07 21:58)

-Joe D

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


Sorry, only registered users may post in this forum.