Re: Problem Running my Scripts from IIS...

From: Date: Tue, 16 Jul 2002 14:18:53 +0000
Subject: Re: Problem Running my Scripts from IIS...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-107875@lists.php.net to get a copy of this message
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" <MindHunter@mailbox.co.za> wrote in message news:20020716141130.64731.qmail@pb1.pair.com... > 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" <kondwani@cs.mun.ca> wrote in message > news:20020716125228.78314.qmail@pb1.pair.com... > > 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 > > > > > >

« previous php.general (#107875) next »