title: Move files between amazon S3 to Glacier and vice versa programmatically using API
body: <p>I am creating a PHP based web application using Amazon's S3 and glacier services.</p>
  
  <p>Now I want to give my site users a feature that they can choose any file and make it archive (means move file from S3 to Glacier) and unarchive (means move file from Glacier to S3).</p>
  
  <p>I have done some research and didn't find any possible way using Amazon's API. </p>
  
  <p><strong>PROBLEM</strong></p>
  
  <p>How can I move files between S3 and glacier using API?</p>