title: how i can use this curl command in php?
body: <p>I'm trying to send a file that inputs from the user on my website port 80 and send this file to execute on a server by using this curl command:</p>
  
  <pre><code>curl -v --form input=@./file.pdf localhost:8080/processHeaderDocument -o ./file.xml
  </code></pre>
  
  <p>i try to do this but it is not response anything</p>
  
  <pre><code>$ch = curl_init();
  
  curl_setopt($ch, CURLOPT_URL, "http://localhost:8080/");
  curl_setopt($ch, CURLOPT_HEADER, 0);
  
  curl_exec($ch);
  
  curl_close($ch);
  </code></pre>
  
  <p>how do I use this command in php? Is it will occur problem to send a file over port 80 to 8080?</p>