I install aws sdk for php in an application with elastic beanstalk using a phar file,
require_once __DIR__ . '/../AWS-SDK/aws.phar';
when I run the script for the first time, it succeeds! but when I try again, I got this error:
Warning: require(phar://aws.phar/aws-autoloader.php): failed to open stream: phar error: invalid url or non-existent phar "phar://aws.phar/aws-autoloader.php" in /var/app/current/src/utils/AWS-SDK/aws.phar on line 3 Fatal error: require(): Failed opening required 'phar://aws.phar/aws-autoloader.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/app/current/src/utils/AWS-SDK/aws.phar on line 3
How to solve the problem?
php amazon-web-services elastic-beanstalk phar aws-php-sdk
david
source share