Posted by Windcape Tue 6th Mar 2007 21:41 - Syntax is JavaScript - 28 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
-
$fp = fsockopen('fservice.rncs.dk',80,$errno,$errstr,5);
-
echo 'connection opened
'; -
flush();
-
-
stream_set_timeout($fp,5);
-
fputs($fp,$http_request);
-
echo 'data sent
'; -
flush();
-
-
while(!feof($fp)) {
-
echo fgets($fp, 128); // script gets stuck here.
-
flush();
-
}
-
echo '
'; -
-
echo 'closing connection
'; -
fclose($fp);
-
echo 'connection closed
';
PermaLink to this entry https://pastebin.co.uk/11493
Posted by Windcape Tue 6th Mar 2007 21:41 - Syntax is JavaScript - 28 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Comments: 0