php-install Digest 15 Nov 2002 09:30:23 -0000 Issue 1120

Topics (messages 9134 through 9145):

Cobalt XTR - Query string completely ignored
        9134 by: xfesty

Problem With Form Data
        9135 by: CSParker1.aol.com
        9136 by: xfesty
        9137 by: Marco Tabini
        9138 by: CSParker1.aol.com
        9139 by: Jorge Reteguin
        9140 by: Jeffrey_N_Dyke.Keane.com
        9142 by: CSParker1.aol.com

Re: problem iwith build php42s3 with apache13s27
        9141 by: Arindam Haldar
        9143 by: Jim Thome
        9144 by: Arindam Haldar

Can't run php-4.2.3 under apache 1.x
        9145 by: Mad Jack

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 --- Having some wierd, wierd problems with my Cobalt XTR.

PHP 4.1.2's installed on it (from Sun). I've never, ever been able to get $_REQUEST['query']; type stuff working on it, it always results with it being blank - no matter what I set Magic Quotes/Register globals to.

No idea why, but its suddenly stopped letting me use direct variables from the query string (i.e. $id in the sceneraio of blah.php?$id=blah).

Can't figure out why. Means all PHP on my server's now rendered pretty much useless.

See forwarded email below too, I sent a simular question (again) to the Cobalt users mailing list, but I never get any response.

Thanks.

R

On Friday, November 15, 2002, at 01:58 AM, xfesty wrote:
Hiya.

I'm having even *more* fun with PHP now (sigh). For some reason, the web interface on my XTR has completely stopped working. This happened a few weeks ago, but I never use it anyway, so it wasn't a biggie. I can't think of anything I did that would have caused it to happen.

I had a backup of a php.ini a while ago (was playing with it to get magic quotes [i.e. $_REQUEST] working), I restored this & restarted apache, but to no effect.

I just tried this simple PHP script:

<?
echo $id;
$id2 = $_REQUEST['id2'];
echo $id2;
?>

If I call this "test.php", theoretically browsing to http://website/test.php?id=TEST&id2=TEST should show up "TEST" twice.

Failing that, if register globals is on, $id should show up - and if magic quotes is on, $id2 should show.

Nothing's coming up. They're certainly enabled in php.ini.

PHP isn't seeing any of the stuff after ? (parameters I guess you could call them?)

Just tried to compile & install my own PHP (4.2.3) then, keeping backups - instead, webpages come up completely blank.

Aaargh. This isn't making any sense ;-(

Any ideas anybody?

R
-- -
Ryan Verner <[EMAIL PROTECTED]>

ICQ: 76626240                   IRC: xf / irc.oublinet.net
 PH: +61 415 297 303             EQ: Mummer (Bard), Tholuxe

propaganda as education, no rising above your station.
a totalitarian state, all the victims that can hardly wait.

--- End Message ---
--- Begin Message ---
Could this be a PHP setting I need to modify?

When I fill out a form I built on one of my servers it doesn't see the 
submitted data.  When I use the same form on another server it works fine.  
Has anyone seen this type of behavior before?   thanks for the help.
--- End Message ---
--- Begin Message ---
Very likely related to register globals.

How are you parsing your queries?  Using $_REQUEST['query'] or anything?

R

On Friday, November 15, 2002, at 04:57 AM, [EMAIL PROTECTED] wrote:

Could this be a PHP setting I need to modify?

When I fill out a form I built on one of my servers it doesn't see the
submitted data. When I use the same form on another server it works fine.
Has anyone seen this type of behavior before? thanks for the help.

-- -
Ryan Verner <[EMAIL PROTECTED]>
PGP: 5819 DE5D B5AE 9381 7E60  5B4C 45CC 64DF D3CC EB07

ICQ: 76626240                   IRC: xf / irc.oublinet.net
 PH: +61 415 297 303             EQ: Mummer (Bard), Tholuxe

In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.

--- End Message ---
--- Begin Message ---
It's probably a register_globals - related issue. Try using the
superglobals ($_POST, $_GET, $_REQUEST) instead and it should work on
both.


Marco
-- 
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers

Come visit us at http://www.phparch.com!
--- Begin Message ---
Could this be a PHP setting I need to modify?

When I fill out a form I built on one of my servers it doesn't see the 
submitted data.  When I use the same form on another server it works fine.  
Has anyone seen this type of behavior before?   thanks for the help.
--- End Message ---
--- End Message ---
--- Begin Message ---
In a message dated 11/14/2002 1:04:13 PM Eastern Standard Time, 
[EMAIL PROTECTED] writes:

> Very likely related to register globals.
> 
> How are you parsing your queries?  Using $_REQUEST['query'] or anything?
> 
> R
> 
> On Friday, November 15, 2002, at 04:57 AM, [EMAIL PROTECTED] wrote:
> 
> >Could this be a PHP setting I need to modify?
> >
> >When I fill out a form I built on one of my servers it doesn't see the
> >submitted data.  When I use the same form on another server it works 
> >fine.
> >Has anyone seen this type of behavior before?   thanks for the help.
> >

Well, I am not parsing any queries...  This is just a simple html form with 
on field which is required.  Everytime I submit data, it doesnt see it...
--- End Message ---
--- Begin Message ---
Maybe you would have to enable globals in php.ini

But I would really recomend you not to do it. Instead, you should
use $HTTP_POST_VARS['yourPostVariable'] and $HTTP_GET_VARS['yourGetVariable']
in your scripts!

I hope this solves your problem.
:)




> Could this be a PHP setting I need to modify?
>
> When I fill out a form I built on one of my servers it doesn't see the
> submitted data.  When I use the same form on another server it works
> fine.   Has anyone seen this type of behavior before?   thanks for the
> help.


-- 
Jorge Alberto Reteguín Pimentel
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
if you are running PHP higher then 4.1 you need to use the superglobals
$_GET, $_POST, $_SESSION etc....

Jeff


                                                                                       
                             
                    CSParker1@aol.                                                     
                             
                    com                  To:     [EMAIL PROTECTED]                  
                             
                                         cc:     [EMAIL PROTECTED]             
                             
                    11/14/2002           Subject:     Re: [PHP-INST] Problem With Form 
Data                         
                    01:06 PM                                                           
                             
                                                                                       
                             
                                                                                       
                             




In a message dated 11/14/2002 1:04:13 PM Eastern Standard Time,
[EMAIL PROTECTED] writes:

> Very likely related to register globals.
>
> How are you parsing your queries?  Using $_REQUEST['query'] or anything?
>
> R
>
> On Friday, November 15, 2002, at 04:57 AM, [EMAIL PROTECTED] wrote:
>
> >Could this be a PHP setting I need to modify?
> >
> >When I fill out a form I built on one of my servers it doesn't see the
> >submitted data.  When I use the same form on another server it works
> >fine.
> >Has anyone seen this type of behavior before?   thanks for the help.
> >

Well, I am not parsing any queries...  This is just a simple html form with
on field which is required.  Everytime I submit data, it doesnt see it...




--- End Message ---
--- Begin Message --- I'm cured...  Some how my php.ini got messed up...  Thanks for everyones help!
--- Begin Message ---
Could this be a PHP setting I need to modify?

When I fill out a form I built on one of my servers it doesn't see the 
submitted data.  When I use the same form on another server it works fine.  
Has anyone seen this type of behavior before?   thanks for the help.
--- End Message ---
--- End Message ---
--- Begin Message --- hi all,
thanx for your help.. i want to know if i build php without the " --with-apache=XXXXX " & recompile, still there will be support for php in apache ??
im sorry for this silly Question but am putting hands on php & apache for the first time...
thanx in advance..
A.H

Jim Thome wrote:
You compiled it as part of the Apache binary.
Remove the switch "--with-apache=/usr/local/src/apache_1.3.27" and recompile. This will create the PHP binary.

Yes it is possible (in most cases) to develop the same scripts for both shell and web, just keep in mind that the environment variables are probably not the same.

--
Jim


Arindam Haldar <[EMAIL PROTECTED]> 11/14/02 03:30AM >>>

hi all
im installing php for the first time the version i downloaded php 4.2.3 & apache 1.3.27..
i followed te steps as written & am sucessful in compiling php too but when i c the bin directory i cant find any php binary..the bin library shows these files installed....
[root@myRH root]# ls /usr/local/php/v4-2s3/bin/
pear pearize php-config phpextdist phpize phptar
[root@myRH root]#

the build option were...
[root@myRH php-4.2.3]# ./configure --prefix=/usr/local/php/v4-2s3 --with-apache=/usr/local/src/apache_1.3.27 --enable-cli --with-openssl --enable-sigchild --with-zlib --with-bz2 --with-gdbm --with-db3 --with-pgsql=/usr/local/pgsql/v7-2s3 --with-snmp --enable-sockets --with-xml

i read that present php supports have shell scipting features... if that is true then is it possible to develop the same scipts for both shell & as html for web ??

awaitng a reply very anxiously...
A.H


--- End Message ---
--- Begin Message ---
If you finished the previous install (make, make install), and completed the addition 
of the php module to the apache binary, you will have the PHP support.



>>> Arindam Haldar <[EMAIL PROTECTED]> 11/14/02 11:26AM >>>
hi all,
thanx for your help.. i want  to know if i build php  without the " 
--with-apache=XXXXX  " & recompile, still there will be support for php 
in apache ??
im sorry for this silly Question but am putting hands on php & apache 
for the first time...
thanx in advance..
A.H

Jim Thome wrote:
> You compiled it as part of the Apache binary.  
> 
> Remove the switch "--with-apache=/usr/local/src/apache_1.3.27" and recompile.  This 
>will create the PHP binary.
> 
> Yes it is possible (in most cases) to develop the same scripts for both shell and 
>web, just keep in mind that the environment variables are probably not the same.
> 
> --
> Jim
> 
> 
>>>>Arindam Haldar <[EMAIL PROTECTED]> 11/14/02 03:30AM >>>
>>>
> hi all
> im installing php for the first time the version i downloaded php 4.2.3 
> & apache 1.3.27..
> i followed te steps as written & am sucessful in compiling php too but 
> when i c the bin directory i cant find any php binary..the bin library 
> shows these files installed....
> [root@myRH root]# ls /usr/local/php/v4-2s3/bin/
> pear  pearize  php-config  phpextdist  phpize  phptar
> [root@myRH root]#
> 
> the build option were...
> [root@myRH php-4.2.3]# ./configure --prefix=/usr/local/php/v4-2s3 
> --with-apache=/usr/local/src/apache_1.3.27 --enable-cli --with-openssl 
> --enable-sigchild --with-zlib --with-bz2 --with-gdbm --with-db3 
> --with-pgsql=/usr/local/pgsql/v7-2s3 --with-snmp --enable-sockets 
> --with-xml
> 
> i read that present php supports have shell scipting features... if that 
> is true then is it possible to develop the same scipts for both shell & 
> as html for web ??
> 
> awaitng a reply very anxiously...
> A.H
> 



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


--- End Message ---
--- Begin Message ---
:) .. ok thanx ...got what u mean now.... :)

Jim Thome wrote:
If you finished the previous install (make, make install), and completed the addition of the php module to the apache binary, you will have the PHP support.




Arindam Haldar <[EMAIL PROTECTED]> 11/14/02 11:26AM >>>

hi all,
thanx for your help.. i want to know if i build php without the " --with-apache=XXXXX " & recompile, still there will be support for php in apache ??
im sorry for this silly Question but am putting hands on php & apache for the first time...
thanx in advance..
A.H

Jim Thome wrote:

You compiled it as part of the Apache binary.
Remove the switch "--with-apache=/usr/local/src/apache_1.3.27" and recompile. This will create the PHP binary.

Yes it is possible (in most cases) to develop the same scripts for both shell and web, just keep in mind that the environment variables are probably not the same.

--
Jim



Arindam Haldar <[EMAIL PROTECTED]> 11/14/02 03:30AM >>>

hi all
im installing php for the first time the version i downloaded php 4.2.3 & apache 1.3.27..
i followed te steps as written & am sucessful in compiling php too but when i c the bin directory i cant find any php binary..the bin library shows these files installed....
[root@myRH root]# ls /usr/local/php/v4-2s3/bin/
pear pearize php-config phpextdist phpize phptar
[root@myRH root]#

the build option were...
[root@myRH php-4.2.3]# ./configure --prefix=/usr/local/php/v4-2s3 --with-apache=/usr/local/src/apache_1.3.27 --enable-cli --with-openssl --enable-sigchild --with-zlib --with-bz2 --with-gdbm --with-db3 --with-pgsql=/usr/local/pgsql/v7-2s3 --with-snmp --enable-sockets --with-xml

i read that present php supports have shell scipting features... if that is true then is it possible to develop the same scipts for both shell & as html for web ??

awaitng a reply very anxiously...
A.H



--- End Message ---
--- Begin Message ---
I have successfull configured and compiled php-4.2.3 from sources. That is my 
config.nice:
#! /bin/sh
#
# Created by configure

'./configure' \
'--with-pgsql=/usr/local/pgsql' \
'--with-zlib' \
'--with-layout=GNU' \
'--with-ssl' \
'--with-dom=/usr/local/lib' \
'--without-mysql' \
'--with-xslt-sablot' \
'--enable-xslt' \
'--with-iconv=/usr/local/lib/' \
'--with-curl=../curl-7.9.7/' \
'--with-apxs=/usr/sbin/apxs' \
'--enable-calendar' \
'--with-gettext=/bin' \
'--with-java=/usr/local/jdk1.3.1_04' \
'--with-ming=/usr/lib' \
'--with-gd' \
'--enable-gd-native-ttf' \
'--with-png-dir=/usr' \
'--with-jpeg-dir=/usr' \
'--with-freetype-dir=/usr/local' \
"$@"

But when ran apache with just compiled module i read this messgae:

Starting httpd: Syntax error on line 261 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: 
/etc/httpd/modules/libphp4.so: undefined symbol: IS_SLASH_P
                                                           [ FAILED ]

Help me with this.
--- End Message ---

Reply via email to