I wondered!

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
persiangulf
Forum Commoner
Posts: 30
Joined: Tue Jan 29, 2008 12:04 pm

I wondered!

Post by persiangulf »

hi,
I use a general php file in all of my projects(that I included general functions in it) and the last time I used it sometimes in some scripts I get this warning :

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

The thing that wonder me is that after refreshing the script this warning disappear
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: I wondered!

Post by Christopher »

What does your code look like? Can you post it?
(#10850)
persiangulf
Forum Commoner
Posts: 30
Joined: Tue Jan 29, 2008 12:04 pm

Re: I wondered!

Post by persiangulf »

Thanks,after dealing with the code I understood where the problem comes from.The problem was that I used cookies before initializing it.
Last edited by persiangulf on Tue Feb 12, 2008 2:08 am, edited 1 time in total.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: I wondered!

Post by RobertGonzalez »

Thanks for posting that warning message. I have never seen that before.
Post Reply