Re: strange file handle problem

From: Date: Mon, 01 Apr 2002 19:46:45 +0000
Subject: Re: strange file handle problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91005@lists.php.net to get a copy of this message
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

« previous php.general (#91005) next »