Re: while loops [ newbie ]

From: Date: Thu, 17 May 2001 12:43:19 +0000
Subject: Re: while loops [ newbie ]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53228@lists.php.net to get a copy of this message
On Thursday 17 May 2001 13:58, charles@lunarmedia.net wrote: > i would think that a while loop could do this and possibly write the > output, minus the line i want to take away to a temp file and then copy > it over. in bash i would use a statement like: > > while read i; do > < blah > > done < $filename > $filename.tmp > > however i am not certain how to read in the contents of a file for > comparison within a while loop. this is just going to be an uphill > thread since my next question will be for the < blah > portion :) http://php.net/file http://php.net/foreach http://php.net/fopen http://php.net/fwrite Should get you started. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ..10001000110101011010101101011110111010113...????

« previous php.general (#53228) next »