title: AWS SDK for PHP - Fatal Error Issue
body: <p>I am trying to connect to my S3 to upload a file via my server but whenever i try to run the PHP, i encounter the following error below. I included the <strong>Version</strong> and <strong>Region</strong> but yet the issue still stands?</p>
  
  <p>Error:</p>
  
  <pre><code>Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Missing required client configuration options: region: (string) A "region" configuration value is required for the "s3" service (e.g., "us-west-2"). A list of available public regions and endpoints can be found at http://docs.aws.amazon.com/general/latest/gr/rande.html. version: (string) A "version" configuration value is required. Specifying a version constraint ensures that your code will not be affected by a breaking change made to the service. For example, when using Amazon S3, you can lock your API version to "2006-03-01". Your build of the SDK has the following version(s) of "s3": * "2006-03-01" You may provide "latest" to the "version" configuration value to utilize the most recent available API version that your client's API provider can find. Note: Using 'latest' in a production application is not recommended. A list of available API versions can be found on each client's API documentation page: http:/ in /srv/http/auploader/include/Aws/ClientResolver.php on line 364 
  </code></pre>
  
  <p>My Code:</p>
  
  <pre><code>&lt;?PHP
  require '/srv/http/test/include/aws-autoloader.php';
  
  use Aws\S3\S3Client;
  use Aws\S3\Exception\S3Exception;
  
  $bucket = 'testbucket';
  $keyname = 'sample';
  // $filepath should be absolute path to a file on disk                      
  $filepath = '/srv/http/testfile/setup.html';
  
  // Instantiate the client.
  $s3 = S3Client::factory(array(
      'key'    =&gt; 'blank',
      'secret' =&gt; 'blank'
  ));
  
  try {
      // Upload data.
      $result = $s3-&gt;putObject(array(
          'Bucket' =&gt; $bucket,
          'Key'    =&gt; $keyname,
          'SourceFile'   =&gt; $filepath,
          'ACL'    =&gt; 'public-read',
          'Region'  =&gt; 'eu-west-1',
          'Version' =&gt; '2006-03-01'
      ));
  
  
  
      // Print the URL to the object.
      echo $result['ObjectURL'] . "\n";
  } catch (S3Exception $e) {
      echo $e-&gt;getMessage() . "\n";
  }
  ?&gt;
  </code></pre>