Text Messaging Site

Discussion in 'HTML & Website Design' started by djcrich85, Jul 18, 2010.

  1. #1
    I am wanting to set up a text message advertisement site but...I don't know how to go about doing it do I have to get a script made custom or is there a free script out there somewhere?
     
    djcrich85, Jul 18, 2010 IP
  2. CodeEgg

    CodeEgg Guest

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What exactly do you mean by a text message advertisement site? You mean, a site that would send hundreds of thousands of spam messages? That's probably a bad idea. You'd most likely see a lawsuit headed your way.
     
    CodeEgg, Jul 18, 2010 IP
  3. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I've been running one for a couple of years. Just to let you know - my rankings are always going up, but visitors have been going down lately. I guess texts are getting cheaper and cheaper, so people don't bother anymore.
    Find a cheap SMS gateway (you won't find a free one) that has a web based API. Then you can use cURL to fire off the text to the gateway.

    You don't need to download any pre-made script. It's only a form that adds an advert onto the end of the text, and fires it off.
    Something like:
    
    <?php
        $message = urlencode(substr($_GET['msg'], 0, 122) . ' // sent FREE from YourSite.co.uk //');
        
        // build the request string to SMS gateway
        
        //send messages
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $the_api_url);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $the_request);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_exec($ch);
        curl_close ($ch);
    ?>
    
    PHP:
     
    Deacalion, Jul 18, 2010 IP
  4. djcrich85

    djcrich85 Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok Thanks that is helpful Deacalion and no CodeEgg not sending out spam!
     
    djcrich85, Jul 18, 2010 IP
  5. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Any time. :)
     
    Deacalion, Jul 18, 2010 IP