fopen : Supplied argument is not a valid File-Handle resource

From: Date: Mon, 29 Sep 2003 07:30:30 +0000
Subject: fopen : Supplied argument is not a valid File-Handle resource
Groups: php.db php.db 
Request: Send a blank email to php-db+get-30746@lists.php.net to get a copy of this message
Dear All, I use this script if ( ($type == "all" or $type == "com") and $com_include ) { $com_array = array($ddomain.".com",$ddomain.".net"); $com_count = count($com_array); $i=0; for ($i=0;$i<$com_count;$i++) { $domname = $com_array[$i]; $ns = fsockopen($com_server,43); fputs($ns,"$domname\r\n"); $result = ''; while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($com_nomatch,$result)) { dispav($domname); } else { dispun($domname,$com_server); } } echo '<tr><td colspan="5" class="separator">&nbsp;</td></tr>'; } my PHP Version 4.1.2 And I get Warning : Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site1/web/whoisnew.php on line 584 Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site1/web/whoisnew.php on line 586 Anyone can help me ? Thanks a lot

« previous php.db (#30746) next »