Getting following error:
PHP Warning: require(Guzzle/Http/Client.php): failed to open stream: No such file or directory in /var/www/html/index.php on line 7
PHP Fatal error: require(): Failed opening required 'Guzzle/Http/Client.php' (include_path='.:/usr/share/pear:/usr/share/php:/home/ec2-user/pear:/home/ec2-user/pear/share/pear/Guzzle:./Aws') in /var/www/html/index.php on line 7
my code
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '/home/ec2-user/pear');
set_include_path(get_include_path() . PATH_SEPARATOR . '/home/ec2-user/pear/share/pear/Guzzle');
set_include_path(get_include_path() . PATH_SEPARATOR . './Aws');
function my_autoload($class_name)
{
$class_name = str_replace("\\","/",$class_name);
require $class_name. '.php';
}
spl_autoload_register('my_autoload');
require '/home/ec2-user/pear/share/pear/Guzzle/Service/Client.php';
require 'Aws/S3/S3Client.php';
Can someone answer this?
Thanks Ashok