SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    960
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    call back url's - urgent help

    Hai folks,

    We sent 2way sms to our employees from the head office.
    ex:
    what car you like? Reply
    1 for Honda
    2 for Hyundai
    3 for Toyota
    4 for Skoda

    Now when employee replies, our sms gateway provider is telling , they will get us the response via a callback url.
    Our sms gateway provider manual says :

    Callback URLs will be used to send messages back to applications via a standard HTTP GET or POST.
    The reply-path URL is set by you within Central.

    Example: If you provide this URL http://www.yourdomain.com/sms/sms.php then we will do a POST
    or GET as follows:

    https://www.yourdomain.com/sms/sms.p...27123456789&ti
    mestamp=2008-08-0609:43:50&text=Hereisthe%20messagetext&charset=ISO-8859-1&udh=&moMsgId=b2aee337abd962489b123fda9c3480fa

    What happens when we are unable to connect to your server?
    we provide retries of MO callbacks. We follow retry as follows:
    1. 2 minutes after the original attempt
    2. 4 minutes after last retry
    3. 8 minutes after last retry
    4. 16 minutes after last retry
    5. 32 minutes after last retry
    6. 64 minutes after last retry
    7. 128 minutes after last retry (max retries reached)

    After this, we do not retry again.
    my question is : to receive values using $_GET[] Method from above url. when i want to run my script sms.php? coz employee may reply after 5 min or 1 hour or even after 1 day. so do i need to keep refresh my php page every second?

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,398
    Mentioned
    147 Post(s)
    Tagged
    4 Thread(s)
    The script is run when it is called. There's no need for you to run it at some specific time.

  3. #3
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,747
    Mentioned
    64 Post(s)
    Tagged
    0 Thread(s)
    More specifically, you should never run that script. (other than to test, obviously)

    The SMS service will call your script when it triggers (Presumably, whenever it gets a response from one of your employees)
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  4. #4
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    960
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Got it guys!!!!!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •