SMS Script

Discussion in 'PHP' started by integrity, Dec 11, 2007.

  1. #1
    I have an SMS script. I want it to send out multiple of the same message automatically, instead of once. Any idea of how I would do this?
     
    integrity, Dec 11, 2007 IP
  2. Paul Starsky

    Paul Starsky Peon

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Read about pcntl_fork()
     
    Paul Starsky, Dec 11, 2007 IP
  3. hogan_h

    hogan_h Peon

    Messages:
    199
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What dou you mean exactly with "sending multiple messages out" and how does your sms script work?

    Do you want to send a message to same phone number multiple times or do you mean sending it to multiple different phone numbers?
     
    hogan_h, Dec 11, 2007 IP
  4. integrity

    integrity Well-Known Member

    Messages:
    1,999
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    180
    #4
    I mean send a message to same phone number multiple times.

    Thanks,
    Ty Maier :)
     
    integrity, Dec 11, 2007 IP
  5. hogan_h

    hogan_h Peon

    Messages:
    199
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Don't know how your script works, but you could modify it and create loop which would run x times and each time send the message.
     
    hogan_h, Dec 11, 2007 IP
  6. integrity

    integrity Well-Known Member

    Messages:
    1,999
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    180
    #6
    Thank you.

    I know nothing about php lol.

    Anywhere you could show me to go to learn about these "loops"? :D
     
    integrity, Dec 11, 2007 IP
  7. hogan_h

    hogan_h Peon

    Messages:
    199
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #7
    http://www.php.net/manual/en/control-structures.for.php

    Basically you enclose you script inside the "for" loop... But watch out not to break anything if you are not proficient with php, always make backup copy :)

    Example:

    $send_it = 5;

    for ($i=0; $i < $send_it; $i++)
    {
    ... the main script code goes here
    }
     
    hogan_h, Dec 11, 2007 IP
  8. integrity

    integrity Well-Known Member

    Messages:
    1,999
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    180
    #8
    Thank you for your help. :)
     
    integrity, Dec 11, 2007 IP