HELP!!!

From: Date: Thu, 24 Apr 2003 20:14:36 +0000
Subject: HELP!!!
Groups: php.windows 
Request: Send a blank email to php-windows+get-19598@lists.php.net to get a copy of this message
Hello pnce more everyone, I'm once again stuck. The code: $news = file($file); foreach ($news as $line) { if ($j == $i) {fwrite($fp, "$id<<!>>$Header<<!>>$Text\n"); $i = -1;} //this we check in case it's time to add a new line to file fwrite($fp, "$line"); $j++; } i holds the place where the new line should be placed in a file. j is the counter for the $news array. Everything is great, it sorts everything as it should but when I open the file I see too much extra empty lines, which continue appearing every time I run this script. The funniest thing is that j counter works well (it doesn't see those lines). So tell me, if it is my code which is bad or those are bugs related to Apache-PHP on Wondows installation? :) HUGE Thanx!

« previous php.windows (#19598) next »