Weird problem with PHP

Weird problem with PHP

am 01.11.2007 13:11:45 von DaWiz

I have installed GDE and PHP 5.2.4. If I run phpinfo from a web page it
reports version 5.1.4 instead of 5.2.4. It also does njot show gd support.
I get a "Call to undefined function imagecreatefromjpeg" in a web page I am
working with.

I go to a command prompt (Linux Fedora 4) and it shows 5.2.4 with gd
enabled.

I have recompiled Apache (2.2.4), PHP (5.2.4) and GD (2.0.35) and
reinstalled all 3 - still the same result.

I do a locate for php and only find the 5.2.4 version in any of the
executable directories.

How can I find where the 5.1.4 is coming from.

Glenn

Re: Weird problem with PHP

am 01.11.2007 13:23:06 von Jerry Stuckle

DaWiz wrote:
> I have installed GDE and PHP 5.2.4. If I run phpinfo from a web page it
> reports version 5.1.4 instead of 5.2.4. It also does njot show gd support.
> I get a "Call to undefined function imagecreatefromjpeg" in a web page I am
> working with.
>
> I go to a command prompt (Linux Fedora 4) and it shows 5.2.4 with gd
> enabled.
>
> I have recompiled Apache (2.2.4), PHP (5.2.4) and GD (2.0.35) and
> reinstalled all 3 - still the same result.
>
> I do a locate for php and only find the 5.2.4 version in any of the
> executable directories.
>
> How can I find where the 5.1.4 is coming from.
>
> Glenn
>
>
>

Find out where your web server is loading the PHP library from
(httpd.conf for Apache). And check phpinfo() in both versions to see
which config file you're using.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: Weird problem with PHP

am 01.11.2007 14:16:54 von Rob

On Nov 1, 12:11 pm, "DaWiz" wrote:
> I have installed GDE and PHP 5.2.4. If I run phpinfo from a web page it
> reports version 5.1.4 instead of 5.2.4. It also does njot show gd support.
> I get a "Call to undefined function imagecreatefromjpeg" in a web page I am
> working with.
>
> I go to a command prompt (Linux Fedora 4) and it shows 5.2.4 with gd
> enabled.
>
> I have recompiled Apache (2.2.4), PHP (5.2.4) and GD (2.0.35) and
> reinstalled all 3 - still the same result.
>
> I do a locate for php and only find the 5.2.4 version in any of the
> executable directories.
>
> How can I find where the 5.1.4 is coming from.
>
> Glenn

Take a look at these two lines in phpinfo, to see if something isn't
being loaded as you think :-

Configuration File (php.ini) -> Path C:\WINDOWS
Loaded Configuration File -> C:\PHP\php.ini

Re: Weird problem with PHP

am 02.11.2007 19:52:29 von darko

On Nov 1, 1:11 pm, "DaWiz" wrote:
> I have installed GDE and PHP 5.2.4. If I run phpinfo from a web page it
> reports version 5.1.4 instead of 5.2.4. It also does njot show gd support.
> I get a "Call to undefined function imagecreatefromjpeg" in a web page I am
> working with.
>
> I go to a command prompt (Linux Fedora 4) and it shows 5.2.4 with gd
> enabled.
>
> I have recompiled Apache (2.2.4), PHP (5.2.4) and GD (2.0.35) and
> reinstalled all 3 - still the same result.
>
> I do a locate for php and only find the 5.2.4 version in any of the
> executable directories.
>
> How can I find where the 5.1.4 is coming from.
>
> Glenn

Wonderful situation to realise you should switch to Linux.