I run it as CGI... I have the problem fixed though... It looks real messy but every time I echo out a variable that *appears* to be undefined whilst it actually is, I stick an @ sign infront of it... Hence I have something like:
echo @$var1; If I need to stick extra statements I use concatenation as follows: echo @$var1."Extra String Fed".@var2"....."; Kind of nasty looking but under IIS it does the trick... Spike... "Mindhunter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Are you running PHP as CGI or ISAPI? > > I got so much similar trouble with the ISAPI dll on IIS that I use the CGI > nowadays. > > MH > > "Kondwani Spike Mkandawire" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have a problem running my Scripts from IIS... > > I test them on my localhost which is running > > Apache and PHP 4.2.1 and it works perfectly... > > However I get an undefined variable error > > running it on an IIS Server running PHP 4.2.1 > > Apart from these messages that make my > > "send to" pages look untidy, the Script still > > runs as expected on IIS... I have tried a couple > > of approaches: > > > > Stuck in some if and isset statements... > > Effect: It affects the running of the whole > > Script (Some of the variables loose info... > > and I am using locking quotations \")... > > > > I have tried sticking in @symbols and this > > has no effect > > > > I have tried sticking in if empty... This has > > a similar effect to if isset... > > > > Does anyone else have any ideas on what I > > could do? > > > > Kondwani > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php