I installed gammu in linux and I can send sms using the shell command. But when I add the command in a php page I get the following error:
$phone = 3588459717;
echo shell_exec ('gammu sendSms TEXT '.$phone.' -text "test msg"');
Error opening device, it does not exist.