Re: PHP can't find image extension
- From: "lwoods" <larry@xxxxxxxxxx>
- Date: Mon, 1 Aug 2005 09:24:10 -0700
I got it to work. I did two things...which is not too cool...but I copied
the php.ini to my WINDOW directory AND it restarted IIS. I have a feeling
that I needed to restart IIS to get php to reread the php.ini file.
??????????????????
TIA,
Larry
"lwoods" <larry@xxxxxxxxxx> wrote in message
news:MSrHe.54073$4o.8468@xxxxxxxxxxxxx
> I changed the "C:\PHP\ext" to "C:\PHP\ext\" ...no change. Also changed
the
> "\" to "/"; no change. I have my php.ini in C:\PHP and I "assume" that it
> is being found because I have a script that executes the "phpinfo()"
> function and that seems to display O.K.
>
> Whoa!!!! I just ran the script with the phpinfo() and it's showing
> "C:\php5" as being the directory for the extensions! I have added
"C:\PHP"
> to my PATH environmental variable, and have added an env. variable named
> PHPRC=C:\PHP\ext . php.exe in in the directory C:\PHP so obviously they
are
> finding it. So, what do I have to do to get them to find my php.ini.
BTW,
> to my knowledge there are NO other php.ini's in this system (including the
> WINDOWS directory).
>
> Larry
>
>
> How can I test to see if
> "Simon Stienen" <news@xxxxxxxxxxxxxxxxxx> wrote in message
> news:1mjlzvuk5nlxd$.dlg@xxxxxxxxxxxxxxxxxxxxx
> > 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
> > --
> > Simon Stienen <http://slashlife.org/>
> > "What you do in this world is a matter of no consequence,
> > The question is, what can you make people believe that you have done."
> > /Sherlock Holmes in A Study in Scarlet by Sir Arthur Conan Doyle/
>
>
>
.
- References:
- PHP can't find image extension
- From: lwoods
- Re: PHP can't find image extension
- From: Simon Stienen
- Re: PHP can't find image extension
- From: lwoods
- PHP can't find image extension
- Prev by Date: How well do sessions scale?
- Next by Date: Re: PHP can't find image extension
- Previous by thread: Re: PHP can't find image extension
- Next by thread: Re: PHP can't find image extension
- Index(es):
Relevant Pages
|
Loading