1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need Php Help - warning by setting session.bug_compat_42

Discussion in 'PHP' started by sukantab, Jan 16, 2007.

  1. #1
    Hi All
    I am getting the following warning when I open my website
    www.devx.biz in a new window. But if I do a refresh, the warning goes away.

    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 you please tell me how to fix it?

    Thanks,
    Sukanta
     
    sukantab, Jan 16, 2007 IP
  2. PET

    PET Member

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #2
    I have the same Warning from this IF:

    the ECHO is displayed, but after the echo I get the same warning.
     
    PET, Mar 9, 2007 IP
  3. Swayze

    Swayze Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This has probably been resolved already but you could:

    Add this to your .htacess file (worked for me):
    php_flag session.bug_compat_warn off
    Code (markup):
    Or Add this to your php.ini file (didn't try this):
    session.bug_compat_warn to off
    Code (markup):
     
    Swayze, May 29, 2009 IP