I am new to php and I am installing php aws-sdk for dynamodb access using this http://docs.aws.amazon.com/aws-sdk-php/guide/latest/installation.html#installing-via-zip
I have included following lines in my php file -
require "/home/ubuntu/aws/aws-autoloader.php";
use Aws\DynamoDb\DynamoDbClient;
To check if it works fine I am using following command -
sudo php myfile.php
It gives me error -
PHP Parse error: syntax error, unexpected '[' in /home/ubuntu/aws/aws-autoloader.php on line 3
Can someone help in this matter.
Note : I can't use first two installation methods given here -http://docs.aws.amazon.com/aws-sdk-php/guide/latest/installation.html