Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7420 > unrolled thread
| Started by | Bob Gatski <bobgatski@gmail.com> |
|---|---|
| First post | 2012-11-01 15:45 -0700 |
| Last post | 2012-11-02 08:44 -0700 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.php
How do I turn on graphics (GD2) on a Windows 7 system? Bob Gatski <bobgatski@gmail.com> - 2012-11-01 15:45 -0700
Re: How do I turn on graphics (GD2) on a Windows 7 system? Jerry Stuckle <jstucklex@attglobal.net> - 2012-11-01 20:14 -0400
Re: How do I turn on graphics (GD2) on a Windows 7 system? bobgatski@gmail.com - 2012-11-01 19:39 -0700
Re: How do I turn on graphics (GD2) on a Windows 7 system? Jerry Stuckle <jstucklex@attglobal.net> - 2012-11-02 07:42 -0400
Re: How do I turn on graphics (GD2) on a Windows 7 system? bobgatski@gmail.com - 2012-11-02 08:44 -0700
| From | Bob Gatski <bobgatski@gmail.com> |
|---|---|
| Date | 2012-11-01 15:45 -0700 |
| Subject | How do I turn on graphics (GD2) on a Windows 7 system? |
| Message-ID | <8af18e35-5f42-4606-be13-8e76086d75ca@y8g2000yqy.googlegroups.com> |
A simple graphics example taken straight from a text book does not work, and I get no error message, so I assume I have to do something to turn on graphics. php.ini already has the extension statement (extension=php_gd2.dll) enabled in php.ini. But it seems that I have to specify "the --with-XXXX configure switch to your PHP configure line" and I haven't been able to find out where this configure line is or what its syntax is. I can't find it now, but I am sure I saw somewhere that I need to copy php_gd2.dll to somethere but I have not been able to find out where that somewhere is on a Windows 7 system. Any advice, pointers, etc. will be much appreciated. Thanks, Bob
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2012-11-01 20:14 -0400 |
| Message-ID | <k6v38r$a9t$1@dont-email.me> |
| In reply to | #7420 |
On 11/1/2012 6:45 PM, Bob Gatski wrote: > A simple graphics example taken straight from a text book does not > work, and I get no error message, so I assume I have to do something > to turn on graphics. > > php.ini already has the extension statement (extension=php_gd2.dll) > enabled in php.ini. > > But it seems that I have to specify "the --with-XXXX configure switch > to your PHP configure line" and I haven't been able to find out where > this configure line is or what its syntax is. > > I can't find it now, but I am sure I saw somewhere that I need to copy > php_gd2.dll to somethere but I have not been able to find out where > that somewhere is on a Windows 7 system. > > Any advice, pointers, etc. will be much appreciated. > > Thanks, Bob > Did you install the required gd libs as indicated in the PHP manual? php_gd2.dll is only a link to the gd libs, not the libs themselves. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | bobgatski@gmail.com |
|---|---|
| Date | 2012-11-01 19:39 -0700 |
| Message-ID | <493163d5-b176-4ffb-a11c-f69a553e2a0f@googlegroups.com> |
| In reply to | #7421 |
On Thursday, November 1, 2012 8:14:20 PM UTC-4, Jerry Stuckle wrote: > On 11/1/2012 6:45 PM, Bob Gatski wrote: > > > A simple graphics example taken straight from a text book does not > > > work, and I get no error message, so I assume I have to do something > > > to turn on graphics. > > > > > > php.ini already has the extension statement (extension=php_gd2.dll) > > > enabled in php.ini. > > > > > > But it seems that I have to specify "the --with-XXXX configure switch > > > to your PHP configure line" and I haven't been able to find out where > > > this configure line is or what its syntax is. > > > > > > I can't find it now, but I am sure I saw somewhere that I need to copy > > > php_gd2.dll to somethere but I have not been able to find out where > > > that somewhere is on a Windows 7 system. > > > > > > Any advice, pointers, etc. will be much appreciated. > > > > > > Thanks, Bob > > > > > > > Did you install the required gd libs as indicated in the PHP manual? > > php_gd2.dll is only a link to the gd libs, not the libs themselves. > > > > -- > > ================== > > Remove the "x" from my email address > > Jerry Stuckle > > JDS Computer Training Corp. > > ================== Hi Jerry. Thanks for responding. I did not install any libraries. Maybe I was misled my this statement in the doc ... "Since PHP 4.3 there is a bundled version of the GD lib. This bundled version has some additional features ..., and should be used in preference to the external library ..." I thought this meant that the GD lib was bundled with PHP. You asked if I had installed the required libS. Did you mean what's available at http://www.libgd.org/ (not available at the moment) and plus whatever other libs I need for specific image formats and fonts? Thanks again, Bob
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2012-11-02 07:42 -0400 |
| Message-ID | <k70bit$vtv$1@dont-email.me> |
| In reply to | #7422 |
On 11/1/2012 10:39 PM, bobgatski@gmail.com wrote: > On Thursday, November 1, 2012 8:14:20 PM UTC-4, Jerry Stuckle wrote: >> On 11/1/2012 6:45 PM, Bob Gatski wrote: >> >>> A simple graphics example taken straight from a text book does not >> >>> work, and I get no error message, so I assume I have to do something >> >>> to turn on graphics. >> >>> >> >>> php.ini already has the extension statement (extension=php_gd2.dll) >> >>> enabled in php.ini. >> >>> >> >>> But it seems that I have to specify "the --with-XXXX configure switch >> >>> to your PHP configure line" and I haven't been able to find out where >> >>> this configure line is or what its syntax is. >> >>> >> >>> I can't find it now, but I am sure I saw somewhere that I need to copy >> >>> php_gd2.dll to somethere but I have not been able to find out where >> >>> that somewhere is on a Windows 7 system. >> >>> >> >>> Any advice, pointers, etc. will be much appreciated. >> >>> >> >>> Thanks, Bob >> >>> >> >> >> >> Did you install the required gd libs as indicated in the PHP manual? >> >> php_gd2.dll is only a link to the gd libs, not the libs themselves. >> >> >> > > Hi Jerry. Thanks for responding. I did not install any libraries. Maybe I was misled my this statement in the doc ... "Since PHP 4.3 there is a bundled version of the GD lib. This bundled version has some additional features ..., and should be used in preference to the external library ..." I thought this meant that the GD lib was bundled with PHP. > > You asked if I had installed the required libS. Did you mean what's available at http://www.libgd.org/ (not available at the moment) and plus whatever other libs I need for specific image formats and fonts? > > Thanks again, Bob > The configure line is for when you compile PHP on Linux. It doesn't exist on Windows. As for the libraries - you can use internal or external ones, but the directory they are in must be in your PATH environment variable for Windows to find it. So the first place to start is - what does phpinfo() show you? Have you set the extension in the correct php.ini file? What is the status of your error logging, specifically you should have: error_reporting = E_ALL display_errors = on for a development system (on a production system, log the errors instead of displaying them). So if your libraries are loaded, we need to find out what error message you are getting. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | bobgatski@gmail.com |
|---|---|
| Date | 2012-11-02 08:44 -0700 |
| Message-ID | <24519f98-3b2e-467e-a715-4823bccbe018@googlegroups.com> |
| In reply to | #7420 |
On Thursday, November 1, 2012 6:45:21 PM UTC-4, Bob Gatski wrote: > A simple graphics example taken straight from a text book does not > > work, and I get no error message, so I assume I have to do something > > to turn on graphics. > > > > php.ini already has the extension statement (extension=php_gd2.dll) > > enabled in php.ini. > > > > But it seems that I have to specify "the --with-XXXX configure switch > > to your PHP configure line" and I haven't been able to find out where > > this configure line is or what its syntax is. > > > > I can't find it now, but I am sure I saw somewhere that I need to copy > > php_gd2.dll to somethere but I have not been able to find out where > > that somewhere is on a Windows 7 system. > > > > Any advice, pointers, etc. will be much appreciated. > > > > Thanks, Bob Jerry, Thanks so much for sticking with me. I made the changes to php.ini and tried it again. Got security (ACL) errors. I thought I had taken care of that but when I went to look I obviously hadn't. So I fixed the security problem and now it all works. Thank you very, VERY much!!! Bob
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web