|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-10-31 08:17 UTC] a dot weerman at kub dot nl
[2005-09-02 07:28 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
$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;