REGISTER_GLOBALS set to off and other issues
| From: | Alisa Davis | Date: | Tue, 23 Mar 2004 15:11:48 +0000 |
| Subject: | REGISTER_GLOBALS set to off and other issues | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181329@lists.php.net to get a copy of this message | ||
I have REGISTER_GLOBALS set to off. I have read and read, but cannot figure out what I need to do
code wise to keep from getting the following message:
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
We upgrade from 4.1.1 about a month ago and since then several things are now broken. I need to know
how to code around this problem so I don't get this WARNING.
I am also having another problem since the upgrade. This seems to be a javascript problem, but
it's weird that it's happened on two different servers just after a PHP upgrade.
I have static page tops and bottoms that I call with an include for each page. Currently, I have all
the javascripts that I use for my entire site in the header:
<script language="javascript" src="library/script1.js"></script>
<script language="javascript" src="library/script2.js"></script>
etc...
If use script1.js on page 1 but don't use script2.js, then I get a javascript error on
script1.js. The reason I know this is that if I strip out all but what is essential to page 1, then
the javascript runs error free, but if not, I get errors.
I don't know if this is a php problem or not, but like I said above, I do know it started with
the upgrades. I can deal with this though, because I know how to fix it. I will just take a while.
This is a school site and they are on spring break right now. I have until Monday 3/29/2004 to get
this fixed. The school's website, which includes homework assignments, lunch menu, etc... will
be dead in the water until I do.
--
Thanks,
Alisa Davis - Madison Academy webmaster
--