Weird stuff



Ok, I admit I have only a couple of years of PHP programming experience and can use all the help I can get.

the echo on line 178 does not output a value for the compare.
the echo on line 183 produces only a blank line.

here is the script fragment (sorry for the unintended line breaks - line numbers are at the beginning of each line)

177: echo __LINE__.":".($runningBalance[0]==$beginning[0]) . "-<br />";
178: echo __LINE__.":" .($runningBalance[1]==$beginning[1]) . "-<br />";
179: echo __LINE__ . " rB[1] = $runningBalance[1]<br />";
180: echo __LINE__ . " b[1] = $beginning[1]<br />";
181: if ($runningBalance[1]==$beginning[1])
182: echo __LINE__ . " 1: EQUAL<br /";
183: else echo __LINE__ . " 1: UNEQUAL<br />";
184: if ($runningBalance[0]==$beginning[0])
185: echo"audit.php:". __LINE__ . " 0: EQUAL<br /";
186: else echo "audit.php:". __LINE__ . " 0: UNEQUAL<br />";
187: if ($runningBalance[1]==$beginning[1])
188: echo __LINE__ . " 1: EQUAL<br /";
189: else echo __LINE__ . " 1: UNEQUAL<br />";
190: echo __LINE__ . " end<br />

the full output is:
177:1-
178:-
179 rB[1] = 32.38
180 b[1] = 32.38
183 1: UNEQUAL
audit.php:185 0: EQUAL

190 end


I can see no reason why:
a) the compare on line 178 outputs nothing
a) the compare is unequal on line 187
b) there is only a blank line output on line 189

bill



.



Relevant Pages

  • Tell Betty its romantic emphasizing in a meaning.
    ... If the comfortable requests can compare probably, ... techniques. ... runs to greek David, who's allowing worth the dose's benefit. ... easy myth won't review before I echo it. ...
    (sci.crypt)
  • Re: diff(ing) 2 directories ?
    ... compare directory trees recursively and report the differences. ... echo "softlink" ... # compare a file, directory, or softlink ... cat << EOU Usage: $0 dir1 dir2 Compare directory trees: files are binary compared directories are checked for identical content soft links are checked for identical targets ...
    (comp.lang.tcl)
  • Comparing file trees to check for compromised system.
    ... I ended up using Bit Twister's ideas to write a script to compare two ... for dir1 in $dirlist; do ... # echo "directory:" $dir1 ...
    (comp.os.linux.security)
  • Re: Handsets from Vodafone
    ... they're nothing to compare to the Nokia ones ... that seem to echo around the room, but I tend to use it on increasing ring ...
    (uk.telecom.mobile)
  • Comparing Two Dates Using PHP from MYSQL Database
    ... Im trying to compare two dates in MYSQL. ... ORDER BY `timestamp` DESC "; ... echo $convertedTime; ...
    (comp.lang.php)