note 20449 added to function.fsockopen

From: Date: Thu, 04 Apr 2002 01:33:24 +0000
Subject: note 20449 added to function.fsockopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-28585@lists.php.net to get a copy of this message
Why does this give an error in php3.0.5? The error i get is Warning: Wrong parameter count for fsockopen() in /www/htdocs/sathyasaivictims/hari-admin/test.php on line 5 () <?php // include("ipadd.inc"); $fp = fsockopen ("www.php.net", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br>\n"; } else { fputs ($fp, "GET / HTTP/1.0\r\nHost: www.php.net\r\n\r\n"); while (!feof($fp)) { echo fgets ($fp,128); } fclose ($fp); } ?> -- http://www.php.net/manual/en/function.fsockopen.php http://master.php.net/manage/user-notes.php?action=edit+20449 http://master.php.net/manage/user-notes.php?action=delete+20449 http://master.php.net/manage/user-notes.php?action=reject+20449

« previous php.notes (#28585) next »