title: copy file from one server to another programmatically in php
body: <p>I've hosted my all code files on one server whose domain is like <code>example.com</code> and I'm at one of those html pages. I want some files of example.com to move on another server whose domain is like <code>example2.com</code>. I've searched through Internet but I couldn't find any good solution. Please tell me is this possible without FTP client or without browser where we upload files manually. Or is there any way to submit file from HTML form from one server to another like if on action we'll write </p>
  
  <pre><code>&lt;form action="http://example2.com/action_page.php"&gt;
  </code></pre>
  
  <p>Any help would be much appreciated.</p>