FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How do I turn on graphics (GD2) on a Windows 7 system?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
How do I turn on graphics (GD2) on a Windows 7 system? [message #179489] Thu, 01 November 2012 22:45 Go to next message
bobgatski is currently offline  bobgatski
Messages: 11
Registered: October 2012
Karma: 0
Junior Member
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
Re: How do I turn on graphics (GD2) on a Windows 7 system? [message #179490 is a reply to message #179489] Fri, 02 November 2012 00:14 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
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(at)attglobal(dot)net
==================
Re: How do I turn on graphics (GD2) on a Windows 7 system? [message #179491 is a reply to message #179490] Fri, 02 November 2012 02:39 Go to previous messageGo to next message
bobgatski is currently offline  bobgatski
Messages: 11
Registered: October 2012
Karma: 0
Junior Member
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
Re: How do I turn on graphics (GD2) on a Windows 7 system? [message #179497 is a reply to message #179491] Fri, 02 November 2012 11:42 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/1/2012 10:39 PM, bobgatski(at)gmail(dot)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(at)attglobal(dot)net
==================
Re: How do I turn on graphics (GD2) on a Windows 7 system? [message #179501 is a reply to message #179489] Fri, 02 November 2012 15:44 Go to previous message
bobgatski is currently offline  bobgatski
Messages: 11
Registered: October 2012
Karma: 0
Junior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PDO_SQLITE == sqlite3 ?
Next Topic: adding a method to a built-in class ?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 19 18:17:25 GMT 2024

Total time taken to generate the page: 3.62016 seconds