ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-db
php-db
[PHP-DB] fopen : Supplied argument is not a valid File-Handle resource
by Ferdian other posts by this author
Sep 29 2003 7:30AM messages near this date
[PHP-DB] fopen : Supplied argument is not a valid File-Handle resource | Re: [PHP-DB] fopen : Supplied argument is not a valid File-Handle resource
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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Ferdian
Ferdian
Jason Wong
Jason Wong

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved