title: Using PHP to upload to Amazon S3
body: <p>I've spent the last few hours following tutorials for implementing file uploads to Amazon S3 using php.  I uploaded the most recent version of Donovan Schönknecht's S3 class to my server (as S3.php) and I am trying to use the following code to test upload capability.  I know this code will work because I've seen numerous examples in action.</p>
  
  <pre><code>&lt;?php
  
  require('S3.php');
  
  $s3 = new S3('KEY', 'SECRET KEY');
  
  //insert into s3
  $new_name = time() . '.txt';
  
  S3::putObject(
  'upload-me.txt',
  'bucketName',
  $new_name,
  S3::ACL_PUBLIC_READ,
  array(),
  array(),
  S3::STORAGE_CLASS_RRS
  
  );
  
  ?&gt;
  </code></pre>
  
  <p>I get an error 500 server error when I attempt to load this page.  Additionally, every other reputable tutorial of this nature has given me the same error 500.</p>
  
  <p>I verified that my key and secret key are valid by connecting to S3 with Cyberduck.</p>
  
  <p>Does anyone have a clue as to what I could be doing incorrectly? </p>
  
  <p>Thanks,</p>
  
  <p>Sean</p>