CodeIgniter Forums

Full Version: create cron job for send automaticaly sms to users
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi
i try to create cron job in cpanel for sending sms automaticaly.and i paste my code below.
 /usr/bin/php /home/webgooy/public_html/samane/index.php admin sms "send_multi_sms"
admin=controller
sms=function
send_multi_sms=parameter
samane=folder of codeigniter
but this code is not working please help me for this problem
do you have a working sms server and gateway?
A cron job has nothing to do with Code Igniter.

To call a url with cron job:
http://serverfault.com/questions/299287/...a-cron-job

To execute a script with cron job:
http://www.thegeekstuff.com/2011/07/php-...eek+Stuff)
(06-29-2016, 08:30 AM)marksman Wrote: [ -> ]do you have a working sms server and gateway?

yes i have
below url do send sms to number but need login to script. is it possible that to make problem?or my job cron is wrong?
http://mydomain.com/[codeigniter folder]/index.php?admin/sms/send_multi_sms
You may try external cron job like easycron.com which starts processes on the URL(like http://mydomain.com/[codeigniter folder]/index.php?admin/sms/send_multi_sms ).
you want to send SMS automatically then you used[url=" https://msg91.com/sms-for-developers"] bulk SMS api java[url]this is very helpful.
You can get sms gateway service provider to send sms by Top 5 Bulk SMS Service Provider in India with SMS API. these services are cheaper then other marketing tool so it take a place of marketing tool now a days.
Here Get login code with API https://www.smsstriker.com/sms-gateway-a...vices.html
$username = "YOURAPIUSERID";
$password = "YOUAPIPASSWORD";
$data = "username="."$username"."
&password="."$password"."&to="."$numbers"."&type=1&dnd_check=0";
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$data);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>