Re: php file writting ?

From: Date: Tue, 18 Mar 2003 20:46:16 +0000
Subject: Re: php file writting ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-140187@lists.php.net to get a copy of this message
At 3/14/2003 12:53 PM, Ron Petty wrote:
Here is the code, maybe I am just missing something (this is the part where it writes and then opens again...
            for($i = 0; $i < count($users); $i++)
            {
                    for($k = 0; $k < count($grouplines);$k++)
                    {
                            $groupline = explode(":", $grouplines[$k]);
                            if($groupline[0] == $users[$i])
                                    continue 2;
                    }
                    $line = $users[$i] . ":x:" . ($user_ids[$i]+1000) .":\n";
                    fwrite($h6, $line);
            }
I may be wrong, but doesnt "continue" jump out of the loop? If so, you're jumping right over the part of your loop that writes to the file, hence nothing in the file. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Email: skeller@healthtvchannel.org Web: www.healthtvchannel.org

« previous php.general (#140187) next »