I have a while loop:
[php]
while ( ($inchar = fgetc($fp) != ‘’’) {
$quote = $quote . $inchar;
}
[/php]
And this is an infinite loop I have determined. I have written this same exact loop in C before with no problem, so I thought I would try it here.
I also tried changing the syntax to this
[php]
$inchar = fgetc($fp);
while ($inchar != ‘’’) {
$quote = $quote . $inchar;
$inchar = fgetc($fp);
}
[/php]
Can somebody help me resolve why this loop is occuring. I should go about three characters in the file I am reading from before is get to the escape.
Thanks