Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7428

Re: How do I turn on graphics (GD2) on a Windows 7 system?

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: How do I turn on graphics (GD2) on a Windows 7 system?
Date 2012-11-02 07:42 -0400
Organization A noiseless patient Spider
Message-ID <k70bit$vtv$1@dont-email.me> (permalink)
References <8af18e35-5f42-4606-be13-8e76086d75ca@y8g2000yqy.googlegroups.com> <k6v38r$a9t$1@dont-email.me> <493163d5-b176-4ffb-a11c-f69a553e2a0f@googlegroups.com>

Show all headers | View raw


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
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web