ID:          7542
 Updated by:  [EMAIL PROTECTED]
 Reported By: a dot weerman at kub dot nl
-Status:      Open
+Status:      Closed
-Bug Type:    *Function Specific
+Bug Type:    *General Issues
-PHP Version: 
+PHP Version: 3.0
 New Comment:

works fine nowadays. (just clearing out old reports)



Previous Comments:
------------------------------------------------------------------------

[2000-10-31 08:17:45] a dot weerman at kub dot nl

above code worked with PHP Version 4.0.0 but not after upgrade to
4.03pl1..



------------------------------------------------------------------------

[2000-10-31 08:07:30] a dot weerman at kub dot nl

$tek = "&";
$fp = fsockopen(.., .., &$errno, &$errstr, 15);
socket_set_blocking ($fp, 0);
if(!$fp):
  //error
else:
  fputs($fp,"GET / HTTP/1.0\n\n");
  $counter = 0;
  while ( list( $key, $val ) = each( $HTTP_POST_VARS ) ) {
    if ($counter < count($HTTP_POST_VARS)-1):
      fputs($fp, $key . "=" . $val . $tek);
    else:
      fputs($fp, $key . "=" . $val);
    endif;
    $counter += 1;
  }
  $running = false;
  $stop = time() + 15;
  while(!feof($fp)&& time()<$stop) {
      echo fgets($fp,128);
      $running = true;
  }
  fclose($fp);
  if (!$running):
    // error
  endif;
endif;

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=7542&edit=1

Reply via email to