Jump to content

sending sms automatically based on the time from the database


Recommended Posts

Hi phpmady,

You can trigger a PHP script using a cronjob on your server.

The script extracts the required data from the database, formats it and sends an HTTP request to an SMS gateway.

 

For the actual sending of an sms from php, have a look at this tutorial:

http://www.sephiroth.it/tutorials/flashPHP/sms/

To trigger

Cheers,

Fergal

Hi phpmady,

You can trigger a PHP script using a cronjob on your server.

The script extracts the required data from the database, formats it and sends an HTTP request to an SMS gateway.

 

For the actual sending of an sms from php, have a look at this tutorial:

http://www.sephiroth.it/tutorials/flashPHP/sms/

To trigger

Cheers,

Fergal

 

Thanks Fergal ,

 

How can i test the cronjob in my local server xampp,

 

 

 

Hi phpmady,

If you are on a windows machine you can set up a scheduled task and run the PHP script using wget for windows.

http://gnuwin32.sourceforge.net/packages/wget.htm.

This calls the script using an http request.

http://en.wikipedia.org/wiki/Wget

Cheers,

Fergal

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.