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?
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.
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: