I've got a basic script that I want to run from a cronjob:
require("/opt/lampp/htdocs/cronjobs/aws-sdk-for-php/sdk.class.php");
$amazonSes = new AmazonSES(array( "key" => $AWS_KEY, "secret" => $AWS_SECRET_KEY, "certificate_authority" => $CA ));
$response = $amazonSes->send_raw_email(array(
'Data'=> base64_encode($message)),
array('Source'=>$src, 'Destinations'=> $dest));
The above works perfectly when I load the .php from the browser.
But from the command line or conjob it returns this fatal error:
Fatal error: Call to undefined function curl_init() in /opt/lampp/htdocs/cronjobs/aws-sdk-for-php/lib/requestcore/requestcore.class.php on line 615
Any ideas?