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

From: Date: Mon, 29 Sep 2003 09:35:54 +0000
Subject: Re: fopen : Supplied argument is not a valid File-Handle resource
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-30750@lists.php.net to get a copy of this message
On Monday 29 September 2003 15:30, Ferdian wrote: Please post to the correct list, this has nothing to do with databases. Please do not post multiple times. Wait patiently for a response! > I use this script [snip] > $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 [snip] How about putting in some error checking code as per example in manual? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* Documentation: Instructions translated from Swedish by Japanese for English speaking persons. */

« previous php.db (#30750) next »