title: PHP force close (kill) a connection
body: <p>I've ran some tests with sockets (using <code>fsockopen()</code> and <code>stream_socket_client()</code>) and cURL to force closing a connection (TCP/HTTP). However, no luck.</p>
  
  <p>Whether I use a 1ms timeout (on cURL the CURLOPT_TIMEOUT_MS option requires a minimal of 1s anyway) or quit a connection immediately after opening it with blocking disabled, it still works flawless.</p>
  
  <p>I haven't tried forking (<code>pcntl_fork()</code>) my script, but my server doesn't support it anyway.</p>
  
  <p>Is there any other way to kill a connection in PHP? It's quite disappointing you can't in PHP while you can in C# :(</p>
  
  <hr>
  
  <p>Edit: Let me clarify my question as it might be somewhat confusing:</p>
  
  <p>I want to see if PHP allows developers to send a SYN. That's all. One, single, SYN packet using PHP's native functions.</p>