session side-effect which existed until PHP...
- From: mp3geek <mp3geek--@xxxxxxxxx>
- Date: Mon, 13 Apr 2009 08:58:49 GMT
When I launch this code, I get "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"
Since it's not my server, how do I modify this to avoid the complaint?
<?php
session_start();
$variable = $_SESSION['plaintext'];
if ($variable != bob){
echo "do stuff";
}
.
- Follow-Ups:
- Re: session side-effect which existed until PHP...
- From: Dan Storm
- Re: session side-effect which existed until PHP...
- Prev by Date: Re: 'funny' characters in mail text
- Next by Date: User Authentication and password protection of several files
- Previous by thread: 'funny' characters in mail text
- Next by thread: Re: session side-effect which existed until PHP...
- Index(es):
Relevant Pages
|