Re: [Phplib-users] Need Help -- Very Strange Problem
Brought to you by:
nhruby,
richardarcher
From: Bob B. <bo...@iN...> - 2001-11-19 22:11:56
|
Nathan -- Thanks, I'm aware of what "exit;" does ... I put line 2 in place so that the cookie setting functions wouldn't complain and stop the script. After proving that the HTTP_POST_VARS indeed contained the expected values on the very first line of the "receiving" script, I commented out lines 1 and 2, which allowed line 4 to display the contents of the HTTP_POST_VARS ... and they were empty. As I said in my note, > If I comment out lines 1 and 2, the $HTTP_POST_VARS are > empty in line 4, as are all other variables. My problem is that after calling "page_open", all variables have disappeared. And that's the issue I need help with ... I've never seen this before, and as far as I can tell, the environmental variables on this server are identical to those on other servers where this code works correctly. Any suggestions at all will be greatly appreciated ... Bob. At 05:04 PM 11/19/2001 -0500, nathan r. hruby wrote: >On Mon, 19 Nov 2001, Bob Bowker wrote: > > > Hi -- > > > > I have phpLib 7.2d running on PHP 4.0.4pl1 on an Apache server. When I > > submit POSTed variables to a script, the $HTTP_POST_VARS are there at line > > 1 and "gone" at line 4. > > > > 1: echo "1 SOMETHING: " . $HTTP_POST_VARS["something"]; > > 2: exit; > > 3: page_open(array("sess" => "Poe_Session")); > > 4: echo "4 SOMETHING: " . $HTTP_POST_VARS["something"]; > > > > If I comment out lines 1 and 2, the $HTTP_POST_VARS are empty in line 4, as > > are all other variables. > > > > I've put a similar trap as line 1 of function start() within session.inc > > and they're empty by here as well. I have safe_mode turned off ... > > > > This one is driving me crazy -- any ideas where to look for the problem? > > > >exit(); === die(); > >Eg: you kill the current script (and presumably the variables in it) when >you call exit(). In theory lines 3 and 4 as stated above should never >actually execute. > >Why this would happen after commenting out lines 1 and 2 is beyond me, as >those lines alone should work. > >-n > >-- >-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- >nathan hruby / digital statement >na...@ds... >http://www.dstatement.com/ > >Public GPG key can be found at: >http://www.dstatement.com/nathan-gpg-key.txt >ED54 9A5E 132D BD01 9103 EEF3 E1B9 4738 EC90 801B >-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |