On Mon, 1 Apr 2002, Ken Nagorski wrote:
> function write()
> {
> if(!$domainfile=fopen("/tmp/$domain", "w"))
> {
> die("Failed to open domain file");
> }
> while(!$result->EOF)
> {
> if($remote_domain && !($default))
> {
> fputs($domainfile, "$virt_address");
> }
> fclose($domainfile);
> }
> }You close $domainfile the first time through the loop. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

