Weird Warning Notice!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gssi
Forum Newbie
Posts: 1
Joined: Thu Jan 17, 2008 4:53 pm

Weird Warning Notice!

Post by gssi »

I am receiving the following warning message on the initial display of a particular web form page:

"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"

Can anyone advise as to the cause of this message or, at least, how to avoid it ...
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: Weird Warning Notice!

Post by Kieran Huggins »

Only use $_POST[], $_GET[] and $_SESSION[] as your inputs.

check out http://ca.php.net/manual/en/language.va ... efined.php
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: Weird Warning Notice!

Post by Mordred »

OT: You think it's wierd? Try this:

Code: Select all

<?php :: ?>
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Weird Warning Notice!

Post by Weirdan »

Mordred wrote:OT: You think it's wierd? Try this:
Weird? Everyone knows what paamayim nekudotayim is.
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: Weird Warning Notice!

Post by Mordred »

Weirdan wrote:
Mordred wrote:OT: You think it's wierd? Try this:
Weird? Everyone knows what paamayim nekudotayim is.
Yeah, but the question is would anyone expect it to be unexpected...
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Weird Warning Notice!

Post by Weirdan »

Mordred wrote:Yeah, but the question is would anyone expect it to be unexpected...
I, for sure, would be unexpecting expected p.n.
Post Reply