Why Can"t I Get Apache to Post?
am 25.07.2007 22:13:34 von kvnsmnsnI don't know if this is the right newsgroup to post this in, but I
couldn't find one that looked better, so here goes.
My company has a bunch of PHP files that are currently working on one
of our machines with webserver Apache. We moved those files over to
my local machine with webserver Apache. When I take my browser to the
URL corresponding to my machine I get a login prompt asking me for my
username and password. The PHP code gets executed to a place that
says:
if ( $_SERVER[ "REQUEST_METHOD" ] == "POST" ) {
// Redirect user depending upon login
if( $User->login( $txtUsername, $txtPassword ) ) {
if ( $User->simple_interface == "1")
header ("Location: simple_interface.php");
else
header( "Location: view_list.php" );
} else {
header
( "Location: .." . $domain
. ($_GET[ "gid" ] ? "?gid=".$_GET[ "gid" ] : "" ));
} // end if
} else if( isset( $lfu ) && isset( $lfp ) ) {
// Redirect user depending upon login
if( $User->login( $lfu, $lfp ) ) {
if ( $User->simple_interface == "1")
header ("Location: simple_interface.php");
else
header( "Location: view_list.php" );
} else {
header
( "Location: .." . $domain
. ($_GET[ "gid" ] ? "?gid=".$_GET[ "gid" ] : "" ));
} // end if
} // end if
What happens on the machine where this code is working is that
<$_SERVER[ "REQUEST_METHOD" ]> evaluates to "POST" so the first branch
of the outer
But on the machine with Apache installed
<$_SERVER[ "REQUEST_METHOD" ]> evaluates to "GET", and one of
Does anyone on this newsgroup know why Apache doesn't post at this
point? Can Apache handle server side variables? Is there a chance
that that's what's messing me up? Am I providing enough information
to answer these questions, or do I need to say more?
What's really confusing me is that both webservers are Apache. The
only differences between the "httpd.conf" files for the two machines
is the groups of
the bottom of each.
---Kevin Simonson
"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_