I am trying to setup a schedule to send sms daily.
playsms works as the following sends me a sms message > http://192.168.1.149/playsms/index.php?app=ws&u=admin&h=549622a2e005dc08023b4d19b954b015&op=pv&to=08********&msg=test+only
I found the following code on this forum but cant get it to work
<?php // your playSMS username $username = 'admin';
// your webservices token (my account → user config)
$token = ‘549622a2e005dc08023b4d19b954b015’;
// playSMS Web Services URL
$playsms_ws = ‘http://192.168.1.149/playsms/index.php?app=ws’;
// destination numbers, comma seperated or use #groupcode for sending to group
$destinations = ‘+35385******’;
$msg = ‘Hello test’
// send via playSMS HTTP API
$ws = $playsms_ws . ‘&u=’ . $username . ‘&h=’ . $token . ‘&op=pv&to=’ . urlencode($destinations) . ‘&msg=’ . urlencode($stats) . ‘&nofooter=1’;
error I get is
Parse error: syntax error, unexpected ‘$ws’ (T_VARIABLE) in C:\wamp\www\sms6.php on line 17
Line 17 is
$ws = $playsms_ws . ‘&u=’ . $username . ‘&h=’ . $token . ‘&op=pv&to=’ . urlencode($destinations) . ‘&msg=’ . urlencode($stats) . ‘&nofooter=1’;