Re: PHP can't find image extension



Simon Stienen wrote:

> On 2005-08-01 17-45-16 lwoods <lwoods <larry@xxxxxxxxxx>> wrote:
>> I'm trying to do some image work. I have enabled the graphics extension
>> and the extension path in php.ini, as well as copying the dll to
>> C:\PHP...just for good measure.
>>
>> php.ini:
>>
>> extension_dir =C:\PHP\ext
>> extension=php_gd2.dll
>>
>> but...when I try to use ImageCreateFrom Jpeg in a script I get the
>> following error:
>>
>> Fatal error: Call to undefined function imagecreatefromjpeg() in
>> C:\Inetpub\wwwroot\PHP\thumbnail\thumbnail.php on line 47
>>
>> Any ideas where I should look in order to correct this?
>>
>> TIA,
>>
>> Larry Woods
>
> Try c:/php/ext/
> Btw: Are you sure, the .ini is in the appropiate directory for your HTTPd?
>
> HTH,
> Simon

Hi,

One more thing:
Some pre-configured Windows-installers are really bad.
I saw a few of them that installed PHP just fine, so it seems, untill you
want to add new extension. That just won't work.

If Simons advice (which also makes perfect sense :P) doesn't help, intall
PHP as described on their site/readme.

Regards,
Erwin Moller
.



Relevant Pages

  • Re: Service or asset?
    ... "Simon" wrote ... > his private property. ... a shed would get tax relief but an extension wouldn't. ... then surely HMRC should have done more ...
    (uk.business.accountancy)
  • Re: Algebraic Extension
    ... Qis a subfield of Qand n is arbitrary, the extension can't ... Prev by Date: ...
    (sci.math)
  • Re: www.mywebsite.py
    ... > I found that the .py extension is given to the paraguay. ... Simon B, ... Prev by Date: ...
    (comp.lang.python)