Re: Re: textfile??????

From: Date: Tue, 31 Jul 2001 11:23:40 +0000
Subject: Re: Re: textfile??????
Groups: php.general 
Request: Send a blank email to php-general+get-60383@lists.php.net to get a copy of this message
I have Apache 1.3.20 + PHP4.0.6 + Windows NT 4.0! Is this problem, that I use Windows and not Linux??? File formats??? Muhv > I tried it and it works good! > > "Muhv" <maamiin@hot.ee> wrote in message > news:200107310817.KAA25032@sun1.hot.ee... > > Hi > > > > Why this code will make empty line between each text line??? > > > > $linkFile='link.txt'; > > $links=file($linkFile); > > $fs=fopen($linkFile,'w+'); > > for ($i=0; $i<count($links); $i++){ > > if (count(explode(',',$links[$i]))==4){ > > $fout=fwrite($fs,$links[$i]); > > } > > } > > fclose($fs); > > > > Same file before: > > ------------------------------------------------------- > > http://www.mp3.com,MP3 Site,Official mp3 site,0 > > http://www.winamp.com,Winamp,Winamp - MP3 Player,0 > > ------------------------------------------------------- > > > > ,and after running this script several times: > > ------------------------------------------------------- > > http://www.mp3.com,MP3 Site,Official mp3 site,0 > > > > > > > > > > http://www.winamp.com,Winamp,Winamp - MP3 Player,0 > > > > > > > > > > ------------------------------------------------------- > > > > I dont want those emty lines!!!!! > > > > Help please!!!! > > > > > > ----------------------------------------- > > Meeldetuletused kalendrist sms-lühisõnumina. Uuri järgi! > > http://www.hot.ee > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > ----------------------------------------- Meeldetuletused kalendrist sms-lühisõnumina. Uuri järgi! http://www.hot.ee

« previous php.general (#60383) next »