<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I check link:http://www.spiration.co.uk/post/1231/Your%20script%20possibly%20relies%20on%20a%20session%20side-effect&nbsp; and make change. However,I still get the same warning message.<BR>
&nbsp;<BR>
I list my php code&nbsp;as the following:<BR>
&lt;?php<BR>session_start();<BR>$mouse_choice=$_POST["mouse_choice"];<BR>$monitor_choice=$_POST["monitor_choice"];<BR>$wifi_choice=$_POST["wifi_choice"];<BR>$subtotal=$_POST["subtotal"];<BR>$offsets=$_POST["offsets"];<BR>$amount=$_POST["amount"];<BR>$desc=$_POST["desc"];<BR>$first_name=$_POST["first_name"];<BR>$last_name=$_POST["last_name"];<BR>$address=$_POST["address"];<BR>$city=$_POST["city"];<BR>$state=$_POST["state"];<BR>$zip=$_POST["zip"];<BR>$phone=$_POST["phone"];<BR>$billeve=$_POST["billeve"];<BR>$email=$_POST["email"];<BR>$ship_to_first_name=$_POST["ship_to_first_name"];<BR>$ship_to_last_name=$_POST["ship_to_last_name"];<BR>$ship_to_address=$_POST["ship_to_address"];<BR>$ship_to_city=$_POST["ship_to_city"];<BR>$ship_to_state=$_POST["ship_to_state"];<BR>$ship_to_zip=$_POST["ship_to_zip"];<BR>$shipday=$_POST["shipday"];<BR>$card_num=$_POST["card_num"];<BR>$exp_date=$_POST["exp_date"];<BR>$card_code=$_POST["card_code"];<BR>
&nbsp;<BR>
&nbsp;<BR>
<BR>if($_POST["mouse_choice"])<BR>$_SESSION["mouse_choice"]=$mouse_choice;<BR>else<BR>$mouse_choice=$_SESSION["mouse_choice"];<BR>
<BR>if($_POST["monitor_choice"])<BR>$_SESSION["monitor_choice"]=$monitor_choice;<BR>else<BR>$monitor_choice=$_SESSION["monitor_choice"];<BR>
&nbsp;<BR>
if($_POST["wifi_choice"])<BR>$_SESSION["wifi_choice"]=$wifi_choice;<BR>else<BR>$wifi_choice=$_SESSION["wifi_choice"];<BR>
&nbsp;<BR>
if($_POST["subtotal"])<BR>$_SESSION["subtotal"]=$subtotal;<BR>else<BR>$subtotal=$_SESSION["subtotal"];<BR>
<BR>if($_POST["offsets"])<BR>$_SESSION["offsets"]=$offsets;<BR>else<BR>$offsets=$_SESSION["offsets"];<BR>
<BR>if($_POST["amount"])<BR>$_SESSION["amount"]=$amount;<BR>else<BR>$amount=$_SESSION["amount"];<BR>
$sum=$subtotal;<BR>
<BR>if($_POST["desc"])<BR>$_SESSION["desc"]=$desc;<BR>else<BR>$desc=$_SESSION["desc"];<BR>
<BR>if($_POST["first_name"])<BR>$_SESSION["first_name"]=$first_name;<BR>else<BR>$first_name=$_SESSION["first_name"];<BR>
<BR>if($_POST["last_name"])<BR>$_SESSION["last_name"]=$last_name;<BR>else<BR>$last_name=$_SESSION["last_name"];<BR>
<BR>if($_POST["address"])<BR>$_SESSION["address"]=$address;<BR>else<BR>$address=$_SESSION["address"];<BR>
<BR>if($_POST["city"])<BR>$_SESSION["city"]=$city;<BR>else<BR>$city=$_SESSION["city"];<BR>
<BR>if($_POST["state"])<BR>$_SESSION["state"]=$sate;<BR>else<BR>$state=$_SESSION["state"];<BR>
<BR>if($_POST["zip"])<BR>$_SESSION["zip"]=$zip;<BR>else<BR>$zip=$_SESSION["zip"];<BR>
<BR>if($_POST["phone"])<BR>$_SESSION["phone"]=$phone;<BR>else<BR>$phone=$_SESSION["phone"];<BR>
<BR>if($_POST["billeve"])<BR>$_SESSION["billeve"]=$billeve;<BR>else<BR>$billeve=$_SESSION["billeve"];<BR>
<BR>if($_POST["email"])<BR>$_SESSION["email"]=$email;<BR>else<BR>$email=$_SESSION["email"];<BR>
&nbsp;<BR>
if($_POST["ship_to_first_name"])<BR>$_SESSION["ship_to_first_name"]=$ship_to_first_name;<BR>else<BR>$ship_to_first_name=$_SESSION["ship_to_first_name"];<BR>
<BR>if($_POST["ship_to_last_name"])<BR>$_SESSION["ship_to_last_name"]=$ship_to_last_name;<BR>else<BR>$ship_to_last_name=$_SESSION["ship_to_last_name"];<BR>
&nbsp;<BR>
if($_POST["ship_to_address"])<BR>$_SESSION["ship_to_address"]=$ship_to_address;<BR>else<BR>$ship_to_address=$_SESSION["ship_to_address"];<BR>
&nbsp;<BR>
if($_POST["ship_to_city"])<BR>$_SESSION["ship_to_city"]=$ship_to_city;<BR>else<BR>$ship_to_city=$_SESSION["ship_to_city"];<BR>
<BR>if($_POST["ship_to_state"])<BR>$_SESSION["ship_to_state"]=$ship_to_state;<BR>else<BR>$ship_to_state=$_SESSION["ship_to_state"];<BR>
<BR>if($_POST["ship_to_zip"])<BR>$_SESSION["ship_to_zip"]=$ship_to_zip;<BR>else<BR>$ship_to_zip=$_SESSION["ship_to_zip"];<BR>
<BR>if($_POST["shipday"])<BR>$_SESSION["shipday"]=$shipday;<BR>else<BR>$shipday=$_SESSION["shipday"];<BR>
&nbsp;<BR>
if($_POST["card_num"])<BR>$_SESSION["card_num"]=$card_num;<BR>else<BR>$card_num=$_SESSION["card_num"];<BR>
<BR>if($_POST["exp_date"])<BR>$_SESSION["exp_date"]=$exp_date;<BR>else<BR>$exp_date=$_SESSION["exp_date"];<BR>
<BR>if($_POST["card_code"])<BR>$_SESSION["card_code"]=$card_code;<BR>else<BR>$card_code=$_SESSION["card_code"];<BR>
&nbsp;<BR>
?&gt;<BR>
&nbsp;<BR>
Any more help?Many thanks!<BR><BR>
chad<BR>&nbsp;<BR>&gt; Date: Wed, 29 Apr 2009 23:33:20 -0400<BR>&gt; From: tomsartain@gmail.com<BR>&gt; To: talk@lists.nyphp.org<BR>&gt; Subject: Re: [nycphp-talk] anyone have idea about the following warning message?<BR>&gt; <BR>&gt; Found this from googling the first sentance:<BR>&gt; http://www.spiration.co.uk/post/1231/Your%20script%20possibly%20relies%20on%20a%20session%20side-effect<BR>&gt; <BR>&gt; Apparently you're trying to assign a global variable into the session<BR>&gt; directly. Of course, if you could provide some sort of code, we could<BR>&gt; help out a bit more.<BR>&gt; <BR>&gt; You say you've got this isolated down to one PHP page... have you<BR>&gt; tried working down the code line-by-line to see what ends up throwing<BR>&gt; the error?<BR>&gt; <BR>&gt; On 4/29/09, chad qian &lt;nynj.tech@hotmail.com&gt; wrote:<BR>&gt; &gt;<BR>&gt; &gt; I always get this warning message on one php page:<BR>&gt; &gt;<BR>&gt; &gt; "<BR>&gt; &gt;<BR>&gt; &gt; Warning: Unknown: Your script possibly relies on a session side-effect which<BR>&gt; &gt; existed until PHP 4.2.3. Please be advised that the session extension does<BR>&gt; &gt; not consider global variables as a source of data, unless register_globals<BR>&gt; &gt; is enabled. You can disable this functionality and this warning by setting<BR>&gt; &gt; session.bug_compat_42 or session.bug_compat_warn to off, respectively. in<BR>&gt; &gt; Unknown on line 0<BR>&gt; &gt;<BR>&gt; &gt; "<BR>&gt; &gt;<BR>&gt; &gt; How to fix this issue?php problem or apache web server problem?I have no<BR>&gt; &gt; clue.<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; Thanks in advance!<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; chad<BR>&gt; &gt;<BR>&gt; &gt; _________________________________________________________________<BR>&gt; &gt; Rediscover HotmailŪ: Get e-mail storage that grows with you.<BR>&gt; &gt; http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009<BR>&gt; _______________________________________________<BR>&gt; New York PHP User Group Community Talk Mailing List<BR>&gt; http://lists.nyphp.org/mailman/listinfo/talk<BR>&gt; <BR>&gt; http://www.nyphp.org/show_participation.php<BR><br /><hr />Rediscover HotmailŪ: Get e-mail storage that grows with you.  <a href='http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009' target='_new'>Check it out.</a></body>
</html>