Re: [PHP] strange file handle problem

2002-04-01 Thread Miguel Cruz
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)) >

[PHP] strange file handle problem

2002-04-01 Thread Ken Nagorski
Hi there, Ok - This is the error I get, Warning: 2 is not a valid File-Handle resource in /usr/local/apache/htdocs/mm_edit.php on line 359 But this is the code... I marked line 359 where it attempts to call fputs for the first time. I can't seem to understand how this is failing. I really think