title: Uploading File from C Client to PHP Server
body: <p>I got a C client which needs to upload a file to web server.
  I am opening the file and sending it using Windows libraries.</p>
  
  <p>On the server side I would like to write a PHP script that save the file.</p>
  
  <p><strong>Question #1:</strong>
  Since this is not the usual HTML FORM POST to PHP - how do I transfer the <strong>filename</strong> along with it's data?
  Using POST '/upload.php?file=filename' and sending the data in the body is recommended?
  If i use this, i can grab the filename via $_GET and file content via $_POST.</p>
  
  <p><strong>Question #2:</strong>
  What happens if file spans more than 1 packet? I need to track the connection somehow on the PHP side to append the POST body to the file. Is there any clean way to do it?</p>
  
  <p>Thank You!</p>