cameeob2003 Posted July 7, 2006 Share Posted July 7, 2006 I am using the following script:[code]<?php session_start(); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>n2p - Nothing to Prove</title><meta name="copyright" content="Copyright by psyche Design - All rights reserved." /><meta name="page-type" content="Info" /><link rel="stylesheet" href="n2p.css" type="text/css" /></head><body><?phpinclude("db.php");$sql = "SELECT * FROM `users` order by `username`"; $result = mysql_query($sql) or die(mysql_error()); while ($text = mysql_Fetch_array($result)) { $access = $text['access']; $handle = $text['handle']; } echo '<font id=UserNameBlue />User Panel<br/><br/>'; if($access == "0"){ echo "<font id=UserPanelText />Account Settings<br/> <font id=UserPanelText />User Profile<br/> <font id=UserPanelText />Mailbox<br/><br/> <font id=UserPanelText />Make Donation<br/>"; } if($access == "1"){ echo "<font id=UserPanelText />Account Settings<br/> <font id=UserPanelText />User Profile<br/> <font id=UserPanelText />Mailbox<br/> <font id=UserPanelText />Edit Media<br/>"; } if($access == "2"){ echo "<font id=UserPanelText />Account Settings<br/> <font id=UserPanelText />User Profile<br/> <font id=UserPanelText />Mailbox<br/> <font id=UserPanelText />Edit Media<br/> <font id=UserPanelText />Edit Matches<br/>"; } if($access == "3"){ echo "<font id=UserPanelText />Account Settings<br/> <font id=UserPanelText />User Profile<br/> <font id=UserPanelText />Mailbox<br/> <font id=UserPanelText />Edit Media<br/> <font id=UserPanelText />Edit Matches<br/> <font id=UserPanelText />Edit Forums<br/>"; } if($access == "4"){ echo "<font id=UserPanelText />Account Settings<br/> <font id=UserPanelText />User Profile<br/> <font id=UserPanelText />Mailbox<br/> <font id=UserPanelText />Edit Media<br/> <font id=UserPanelText />Edit Matches<br/> <font id=UserPanelText />Edit Forums<br/> <font id=UserPanelText />Edit Sponsors<br/>"; } if($access == "5"){ echo "<font id=UserPanelText />Account Settings<br/> <font id=UserPanelText />User Profile<br/> <font id=UserPanelText />Mailbox<br/> <font id=UserPanelText />Edit Media<br/> <font id=UserPanelText />Edit Matches<br/> <font id=UserPanelText />Edit Forums<br/> <font id=UserPanelText />Edit Sponsors<br/> <font id=UserPanelText />Edit Proshop<br/>"; } if($access == "6"){ echo "<font id=UserPanelText />Account Settings<br/> <font id=UserPanelText />User Profile<br/> <font id=UserPanelText />Mailbox<br/> <font id=UserPanelText />Edit Media<br/> <font id=UserPanelText />Edit Matches<br/> <font id=UserPanelText />Edit Forums<br/> <font id=UserPanelText />Edit Sponsors<br/> <font id=UserPanelText />Edit Proshop<br/> <font id=UserPanelText />Edit Roster<br/>"; }?></body></html>[/code]And I get the following error:[quote]Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0[/quote]Why is this? Quote Link to comment https://forums.phpfreaks.com/topic/13980-unknown-your-script-possibly-relies-on-a-session-side-effect/ Share on other sites More sharing options...
radox Posted July 8, 2006 Share Posted July 8, 2006 show your script that sets the session variable Quote Link to comment https://forums.phpfreaks.com/topic/13980-unknown-your-script-possibly-relies-on-a-session-side-effect/#findComment-54672 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.