I have this code:
<?php
    require('aws/aws-autoloader.php');
    echo "1";
    use Aws\S3\S3Client;
    echo "2";
    $s3Client = S3Client::factory(array(
        'key'    => 'mykey',
        'secret' => 'mysecret',
    ));
    echo "3";
    echo  "OK!";
?>
While on my machine the output is "123OK!" (as expected) after uploading it to the server I get only "12" (meaning the creation of the object fails?)
My local machine is running PHP 5.3.27 while the server is running 5.5.5-1chl1~precise1
Update:
The error I'm getting:
Fatal error: Uncaught exception 'Guzzle\Common\Exception\RuntimeException' with message 'The PHP cURL extension must be installed to use Guzzle.' in /var/www/api/1.0/aws/Guzzle/Http/Client.php:70 Stack trace: #0 /var/www/api/1.0/aws/Aws/Common/Client/AbstractClient.php(78): Guzzle\Http\Client->__construct('https://s3.amaz...', Object(Guzzle\Common\Collection)) #1
How do I install what is needed on a linux on C2?
 
     
     
     
    