php-install Digest 29 Jul 2002 22:49:41 -0000 Issue 953

Topics (messages 7930 through 7940):

php 4.2.2 and Gd2
        7930 by: electroteque
        7931 by: Rasmus Lerdorf
        7932 by: electroteque
        7933 by: Rasmus Lerdorf
        7935 by: Maxim Volkov

Re: Getting Variables
        7934 by: Chris Santerre

php 4.2.2 and Gd2 (Continue)
        7936 by: Maxim Volkov

Warning: Failed opening '...' for inclusion (include_path='...') in Unknown on line 0
        7937 by: shane - iordy.com
        7938 by: Bob Lockie

Is this even possible.
        7939 by: Jason Tobias

register_globals and array of checkboxen
        7940 by: Hanser, Kevin

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
hi guys how can i get these two to work together ? i cant seem to compile gd
2 against php at all when i tried in 4.2.1 and now i am getting this error
in 4.2.2

In file included from gd.c:36:
php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows
non-sta
tic
gd.c:92: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'

what seems to be the problem ?


--- End Message ---
--- Begin Message ---
You have 2 different versions of gd on your system.  Clean up the mess and
try again.

-Rasmus

On Mon, 29 Jul 2002, electroteque wrote:

> hi guys how can i get these two to work together ? i cant seem to compile gd
> 2 against php at all when i tried in 4.2.1 and now i am getting this error
> in 4.2.2
>
> In file included from gd.c:36:
> php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows
> non-sta
> tic
> gd.c:92: conflicting types for `gdIOCtx'
> /usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
>
> what seems to be the problem ?
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
how can i uninstall gd 1.8 ?

"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You have 2 different versions of gd on your system.  Clean up the mess and
> try again.
>
> -Rasmus
>
> On Mon, 29 Jul 2002, electroteque wrote:
>
> > hi guys how can i get these two to work together ? i cant seem to
compile gd
> > 2 against php at all when i tried in 4.2.1 and now i am getting this
error
> > in 4.2.2
> >
> > In file included from gd.c:36:
> > php_gd.h:69: warning: static declaration for `gdImageColorResolve'
follows
> > non-sta
> > tic
> > gd.c:92: conflicting types for `gdIOCtx'
> > /usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
> >
> > what seems to be the problem ?
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>


--- End Message ---
--- Begin Message ---
I dunno, depends how you installed it.  Read your documentation.

On Tue, 30 Jul 2002, electroteque wrote:

> how can i uninstall gd 1.8 ?
>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > You have 2 different versions of gd on your system.  Clean up the mess and
> > try again.
> >
> > -Rasmus
> >
> > On Mon, 29 Jul 2002, electroteque wrote:
> >
> > > hi guys how can i get these two to work together ? i cant seem to
> compile gd
> > > 2 against php at all when i tried in 4.2.1 and now i am getting this
> error
> > > in 4.2.2
> > >
> > > In file included from gd.c:36:
> > > php_gd.h:69: warning: static declaration for `gdImageColorResolve'
> follows
> > > non-sta
> > > tic
> > > gd.c:92: conflicting types for `gdIOCtx'
> > > /usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
> > >
> > > what seems to be the problem ?
> > >
> > >
> > >
> > > --
> > > PHP Install Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hello,

I am experiencing the same problem as Electroteque -- Can not install
php-4.2.2 with gd2 (and I have not installed gd-1.8 , this is a freshly
build Turbolinux box). After wrestling with gd's "make" (edit options in
Makefile) I managed to install it at once but was unable to build it into
PHP.
PHP configuration:
----------------------------------------------------
./configure
--with-apache=/usr/local/apache_1.3.26
--with-config-file-path=/usr/local/apache/conf
--with-mysql=/usr/local/mysql
--enable-track-vars
--enable-trans-sid
--enable-bcmath
--with-curl
--with-zlib-dir
--with-pdflib
--enable-static-pdflib
--with-jpeg-dir=/usr/local/jpeg-6b
--with-png-dir=/usr/local/libpng
--with-tiff-dir=/usr/local/tiff
--enable-gd-native-ttf
--enable-gd-imgstrttf
--with-gd=/usr/local/gd
--with-freetype-dir=/usr/local/include/freetype2
--------------------------------------------------
Configures fine without warnings.

The make's error:
-----------------------------------------------------------------------
/usr/local/lib/libgd.a(gd.o): In function `gdImageColorResolve':
gd.o(.text+0x688): multiple definition of `gdImageColorResolve'
ext/gd/gd.o:/usr/local/php/ext/gd/gd.c:425: first defined here
/usr/bin/ld: Warning: size of symbol `gdImageColorResolve' changed from 224
to 213 in gd.o
ext/gd/gd.o: In function `php_free_gd_image':
/usr/local/php/ext/gd/gd.c:288: undefined reference to `zif_imageellipse'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
--------------------------------------------------------------------------

Yesterday looked on and tried every possible suggestion found on the topic
on line (including http://www.php.net/~rasmus/gd.html) with no luck of
making PHP-4.2.2. collaborate with GD2

What should I do next? Really appreciate any help after weekend long
straggle.

Maxim Volkov


--- End Message ---
--- Begin Message ---
This will work, however it was turned off for a reason...security. Look into
rewriting your code with the $_GET function. Search for register_globals on
php.net and it will tell you about this. 

-----Original Message-----
From: lists [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 27, 2002 4:44 AM
To: Sebastian Wolfgarten; [EMAIL PROTECTED]
Subject: Re: [PHP-INST] Getting Variables


Thanks,

I had spent a lot of time searching google, looking at phpinfo output, and
asked on IRC as well.
Looks like I should have taken the time to read php.ini more carefully.

I turned register_global On and that worked.

Thank you,

Shawn

----- Original Message -----
From: "Sebastian Wolfgarten" <[EMAIL PROTECTED]>
To: "'lists'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, July 27, 2002 5:29 PM
Subject: RE: [PHP-INST] Getting Variables


> Hi,
>
> as I told somebody some days ago,
> see register_global option in your
> php.ini - well it seems people not
> reading any release notes or
> documentations :-(
>
> bye,
> werner.
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello,

I am experiencing the same problem as Electroteque -- Can not install
php-4.2.2 with gd2 (and I have not installed gd-1.8 , this is a freshly
build Turbolinux box). After wrestling with gd's "make" (edit options in
Makefile) I managed to install it at once but was unable to build it into
PHP.
PHP configuration:
----------------------------------------------------
./configure
--with-apache=/usr/local/apache_1.3.26
--with-config-file-path=/usr/local/apache/conf
--with-mysql=/usr/local/mysql
--enable-track-vars
--enable-trans-sid
--enable-bcmath
--with-curl
--with-zlib-dir
--with-pdflib
--enable-static-pdflib
--with-jpeg-dir=/usr/local/jpeg-6b
--with-png-dir=/usr/local/libpng
--with-tiff-dir=/usr/local/tiff
--enable-gd-native-ttf
--enable-gd-imgstrttf
--with-gd=/usr/local/gd
--with-freetype-dir=/usr/local/include/freetype2
--------------------------------------------------
Configures fine without warnings.

The make's error:
-----------------------------------------------------------------------
/usr/local/lib/libgd.a(gd.o): In function `gdImageColorResolve':
gd.o(.text+0x688): multiple definition of `gdImageColorResolve'
ext/gd/gd.o:/usr/local/php/ext/gd/gd.c:425: first defined here
/usr/bin/ld: Warning: size of symbol `gdImageColorResolve' changed from 224
to 213 in gd.o
ext/gd/gd.o: In function `php_free_gd_image':
/usr/local/php/ext/gd/gd.c:288: undefined reference to `zif_imageellipse'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
--------------------------------------------------------------------------

Yesterday looked on and tried every possible suggestion found on the topic
on line (including http://www.php.net/~rasmus/gd.html) with no luck of
making PHP-4.2.2. collaborate with GD2

What should I do next? Really appreciate any help after weekend long
straggle.

Maxim Volkov




--- End Message ---
--- Begin Message ---

I'm getting this warning message when I try to run any php code.

Warning: Failed opening '...' for inclusion (include_path='...') in Unknown on line 0

I have had a look on bugs.php.net and yes I have checked that my paths are set 
correctly in php.ini so you can cross that off the list.
I have tried running apache without any virtual hosts or mod_perl, I have even chopped 
the include_path in php.ini back to just '.' but with no luck.

If I run php code with:
<? phpinfo(); ?>

It runs fine and reports everything as normal but
<? echo "foo"; ?>

will report the warning.

I'm using:
debian (currently 2.2.21)
apache 1.3.26
php4 4.2.2
mod_perl 1.26

and all but the kernel where installed as packages using apt-get (yes the packages are 
in unstable but I have never had a problem before).

The box (that I only just inherited and have never run apache/php on before) is 
running on is a p1-166, 8MB RAM, 100MB Swap on a 10GB Drive so I'm wondering if the 
fact my machine is low on resources is causing php to die.


--- End Message ---
--- Begin Message ---

>I'm getting this warning message when I try to run any php code.
>
>Warning: Failed opening '...' for inclusion (include_path='...') in Unknown on line 0
>
>I have had a look on bugs.php.net and yes I have checked that my paths are set 
>correctly in php.ini so you can cross that off the list.
>I have tried running apache without any virtual hosts or mod_perl, I have even 
>chopped the include_path in php.ini back to just '.' but with no luck.
>
>If I run php code with:
><? phpinfo(); ?>
>
>It runs fine and reports everything as normal but
><? echo "foo"; ?>
>
>will report the warning.
>
>I'm using:
>debian (currently 2.2.21)
>apache 1.3.26
>php4 4.2.2
>mod_perl 1.26
>
>and all but the kernel where installed as packages using apt-get (yes the packages 
>are in unstable but I have never had a problem before).
>
>The box (that I only just inherited and have never run apache/php on before) is 
>running on is a p1-166, 8MB RAM, 100MB Swap on a 10GB Drive so I'm wondering if the 
>fact my machine is 
low on resources is causing php to die.

Do a "find / -name php.info -print" to make sure you only have one php.ini file.



--- End Message ---
--- Begin Message ---
I need to build php on a Mac OS-X (Not by choice).  I don't want to use
sendmail.  is there anyway to force it to use another mail server?

Thanks


--- End Message ---
--- Begin Message ---
I'm having a problem with an array of checkboxen in a form that isn't
passing on its values when the form is submitted.

At first I thought this was related to the register_globals since I just
updated to php 4.2.1 a week or so ago..  I've read the information that says
it's turned off by default now, but when I checked on my php.ini file, my
register_globals was already set to On.  (I had updated from an earlier
version of php, so I assume it left my .ini file)

Here's the problem I'm having.   I have a form that looks something like
this (except it's pulled from a db... I'm stripping it down to have the
essentials here :) :

<form action="submit.php" method="post">
<input type="checkbox" name="Checkbox_List[]" value="option1">Option 1<br>
<input type="checkbox" name="Checkbox_List[]" value="option2">Option 2<br>
<input type="submit" name="Submit" value="Submit List">
</form>

and the submit processing of the submit.php page is:

if ($Submit == "Submit List) {
        echo "checkbox list:<br>\n";
        foreach ($Checkbox_List as $A_Checkbox_Item) {
                echo "checkbox item: $A_Checkbox_Item<br>\n";
        }
        Submit_List($Checkbox_List);
}


Here's the problem:  if I check some checkboxen on the page, and then
submit, the output is:

checkbox list:

Nothing seems to be getting passed with the chechbox array...  If I use the
$_POST["Checkbox_List"] variable instead, the data is there...  I'm just
confused as to why register_globals doesn't fix the problem w/out me having
to use the _POST array?  (we have numerous pages that use the old method,
and it'll take some time to convert them all, so register_globals is needed
for now)

The thing that seems _reall_ strange to me, is that it looks like _some_ are
being registered, and others are not...  Like the $Submit variable (from the
input button), that is obviously being passed, otherwise I wouldn't see any
output (first echo inside the if) when it's submitted.

Any ideas on why some data is being passed but not all of it?  This page was
working ok on a pre-4.2 system.
My current config on this server is:

RedHat 6.1 (kernel 2.4.17)
Apache 1.3.26
PHP 4.2.1

thx

Kevin Hanser
System Administrator
Merchant Internet Group, Inc.
ShopsForMe.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]

--- End Message ---

Reply via email to