intermittent global vars issue with iis

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nick

    intermittent global vars issue with iis

    hi,

    i have to run php 4 on IIS 6 on win 2k and something seeminly really
    weird is happening.

    the first few times i hit the page, any vars posted from the form and
    any session_vars don't seem to be getting initialized. i know this
    since i have a form var which i evaluate to enter an if...then block
    and im not entering the if...then block. however, if i echo the form
    var right before the if...then to see what it is, then for some reason
    the code does enter the if...then block. i didn't change any logic at
    all, but simply tried writing the the value of the var to the screen?
    it seems the initialization of global vars is somehow being triggered
    by writing them to the screen. does this make any sense at all?

    nick
  • Jochen Daum

    #2
    Re: intermittent global vars issue with iis

    Hi,

    On 17 Jul 2004 08:31:18 -0700, nickgieschen@ho tmail.com (nick) wrote:
    [color=blue]
    >hi,
    >
    >i have to run php 4 on IIS 6 on win 2k and something seeminly really
    >weird is happening.
    >
    >the first few times i hit the page, any vars posted from the form and
    >any session_vars don't seem to be getting initialized. i know this
    >since i have a form var which i evaluate to enter an if...then block
    >and im not entering the if...then block. however, if i echo the form
    >var right before the if...then to see what it is, then for some reason
    >the code does enter the if...then block. i didn't change any logic at
    >all, but simply tried writing the the value of the var to the screen?
    >it seems the initialization of global vars is somehow being triggered
    >by writing them to the screen. does this make any sense at all?[/color]

    Can you give some examples of how the code looks like and where you
    write something into the screen.

    have you checked "register globals" and is

    error_reporting (E_ALL);

    ?

    HTH, Jochen
    --
    Jochen Daum - Cabletalk Group Ltd.
    PHP DB Edit Toolkit -- PHP scripts for building
    database editing interfaces.
    Download PHP DB Edit Toolkit for free. PHP DB Edit Toolkit is a set of PHP classes makes the generation of database edit interfaces easier and faster. The main class builds tabular and form views based on a data dictionary and takes over handling of insert/update/delete and user input.

    Comment

    Working...