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
Return to the default flat view Create a new topic Submit Reply
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 previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
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
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
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: Fri Dec 20 01:49:00 GMT 2024

Total time taken to generate the page: 0.04787 seconds