Send SMS with PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fr?

    Send SMS with PHP

    Hi,
    I'm trying to send HTTP GET (or POST) requests to a server.
    This server accepts these requests only from the IP-address of my server,
    not of my client pc.

    So, some data generated on the server needs to be send to another server.
    http://remoteserver.com/path/to/file?text=text +to+be+send+as+ sms+message

    How would one do this???

    Thanks,
    fré
  • CountScubula

    #2
    Re: Send SMS with PHP

    "fr?" <griemer@chello .nl> wrote in message
    news:fd172af0.0 401240035.5344c 6c5@posting.goo gle.com...[color=blue]
    > Hi,
    > I'm trying to send HTTP GET (or POST) requests to a server.
    > This server accepts these requests only from the IP-address of my server,
    > not of my client pc.
    >
    > So, some data generated on the server needs to be send to another server.
    > http://remoteserver.com/path/to/file?text=text +to+be+send+as+ sms+message
    >
    > How would one do this???
    >
    > Thanks,
    > fré[/color]

    With your client pc, call a form that calls a script on your server such as:

    <?php
    $txt = $_POST['send'];
    $null = file("http://remoteserver.co m/path/to/file?text=$txt" );
    ?>

    --
    Mike Bradley
    http://www.gzentools.com -- free online php tools


    Comment

    • Linus Norton

      #3
      Re: Send SMS with PHP

      sorry this isnt an answer to your question, but do u know of a decent sms
      server.

      thanks


      Comment

      • Daniel Tryba

        #4
        Re: Send SMS with PHP

        CountScubula <me@scantek.hot mail.com> wrote:[color=blue]
        > With your client pc, call a form that calls a script on your server such as:
        >
        > <?php
        > $txt = $_POST['send'];
        > $null = file("http://remoteserver.co m/path/to/file?text=$txt" );
        > ?>[/color]

        Don't forget to urlencode $txt (and check if that pesky magicquote
        thingy is on).

        --

        Daniel Tryba

        Comment

        Working...