Computer And Internet, Miscellaneous, Personal

I believe this topic is good for application developers. In this short article we will learn how to created SMS gateway and applicated it on worldwide-web using PHP script. What is SMS? SMS stands for short message service. It’s the text communication service component of phone or mobile communication systems, using standardized communications protocols that allow the exchange of short text messages between fixed line or mobile phone devices… more details about SMS please read in wikipedia.

I already written about how to build SMS gateway on my “Bahasa Indonesia” blog, but many people give negative comment on that article because that article is just illustration without real product. There is nothing goes wrong on that article, everything has requirement to created SMS gateway. I think people commenting negative on that article because they never use their brain to “think outside the box“.

Here is image illustration how SMS and Internet can be combined, this application can created a better experience for end users :

Enough for my bad introduction, before we start to learn how to created real SMS gateway we need some requirements in here:

  1. An computer to act as gateway and web-server.
  2. One or more Phone/Modem+SIM cards to act as connection between your SMS gateway and your provider.
  3. NowSMS program (60 days trials or buy) act as virtual machine to send and received SMS.
  4. Web hosting with PHP support (needed when you want to created an online worldwide-web application).
  5. An knowledge to solve a little problem.

[to_plus]

First, we have to make our computers to be a web-server. I recommended to use XAMPP. It works on windows/linux operating system. Use your knowledge to solve all problem you may faced on this step, no need to ask me everything 🙂 You may have to setting port forwarding on your router if necessary.

Next step is connecting your phone/modem to your computer. You can use USB-Cable, Bluetooth, Infrared, or anything that can be used to connecting your phone into your computer. Use your knowledge to solve all problem on this step. In this sample I used USB-Cable.

Next step is installing NowSMS and configure it. After you install NowSMS run it, program should show this screen, next click on add.

Choose which one fit on your configuration and then click OK.

Choose modem installed on your computer, then click test and add modem. In many case, mostly the problem is you might can connecting your Phone but your phone didn’t support for SMS. You can solve this case by use USB-Cable connection.

When you success on add modem, this screen will shown. make sure you click on test button once again.

Click on properties and write down your phone number, you can write phone/modem PIN if it required.

Run this sms gateway service when you needed to send SMS from worldwide-web application.

Try it on your local computers, by default port for SMS gateway is 8800. So you have to write http://localhost:8800 to see this form.

After this step our SMS gateway are ready to use. Next step is created application via PHP script to let us sending SMS or received SMS from internet.

Received SMS

First we have to created an MySQL database to recorded all incoming message to our database. Created a new MySQL database and then import this code:

# CREATE TABLE `inbox` (
# `id` int(5) NOT NULL auto_increment,
# `msg` text NOT NULL,
# PRIMARY KEY (`id`)
# ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

Next use this sample PHP script

# <?php
#
# // database
# $db_host = “localhost”;
# $db_user = “username”;
# $db_pass = “password”;
# $db_name = “database name”;
#
# // connect to mysql
# $link = mysql_pconnect ($db_host, $db_user, $db_pass) or die (“can’t connect”);
# mysql_select_db ($db_name) 0or die (“can’t select database”);
# $msg = trim($msg);
#
# //input to table inbox
# $sql = “INSERT INTO inbox
# SET id=”,
# msg=’$msg'”;
# $query = mysql_query($sql) ;
# ?>

Next step is configure setting on NowSMS program:

  1. Click 2-Way tab.
  2. Check Process Received SMS Messages
  3. Add SMS Command Prefix text, example: Idol (every SMS received with Idol prefix will added into database).
  4. Write your phone number on Receive Phone Number(s)
  5. Write http:/[yourdomainname]/[yourpath]/index.php?msg=@@FULLSMS@@ to Command to Execute.
  6. Click Add then click Apply.

When we received message to this phone number with right prefix it will automatically recorded into our database, on next step we can use this database to any application we need example: vote SMS, etc. Please be creative!

Sending SMS

Next, how we created an simple script to send SMS message from our web-server? I was searching on google and found this good sample script. It might be useful to use. Read the full sample SMS script in here. Use your imagination and be creative!

Ending

That’s it, enough the lesson for today 🙂 If you like this script you can donate to me *LOL* I’m just kidding… If you want to test SMS application you can try this http://sms.istanto.net it would sending SMS message to all Indonesian GSM/CDMA network. Have a good day everyone :):)

[/to_plus]

Related Search Terms:

    Digg Del.icio.us StumbleUpon Reddit Twitter RSS
Computer And Internet, Miscellaneous, Personal, Tips & Trick

In this short article we will learn how to created an custom google translate tools. Google translate tools is free translate service provided by google. This tools really help people to translate some website/page to any language people want.

Google translate tools standards is not really interesting in style *lol* So why we don’t created a simple good looking translate tools our own, but of course we have to credited google as this service provider? Alright let’s created it, I want everyone be creative as possible.

First we have to know how translate tools format working. Example:

http://translate.google.com/translate?hl=en&sl=en&tl=pl&u=http%3A%2F%2Fwww.istanto.net

This is standard format when google translate try to translating my blog from English to Polish. There is some rules we can manipulate it. Example, I try change tl=pl with tl=id:

http://translate.google.com/translate?hl=en&sl=en&tl=id&u=http%3A%2F%2Fwww.istanto.net

The result is I got id translation page (Indonesian). When I try change sl=en to sl=id I got result:

http://translate.google.com/translate?hl=en&sl=id&tl=id&u=http%3A%2F%2Fwww.istanto.net

So the answer is we can manipulate this format if we know country code! That it! Standard format would be like this:

[to_plus]

http://translate.google.com/translate?hl=en&sl=[YOUR PAGE ORIGINAL LANGUAGE]&tl=[LANGUAGE YOU WANT TRANSLATED TO]&u=[PAGE SOURCE]

HL = Hidden Language? *lol* I Don’t know! This properties maybe the language setting on each computers or from where google page country we coming from.

SL = Source Language

TL = Translated Language

U = User

Okay we already know and understand this format, our next goal is created a custom html code to follow this format. This is a simple code I created, if you can please use CSS to make this code clean.

<style>
.translate img {
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
border:0;
padding-left:0px;
}

.translate:hover img {
filter:alpha(opacity=50);
-moz-opacity: 0.50;
opacity: 0.50;
border:0;
}

</style>
<div style=”text-align:center”>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”English” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Cen&hl=en’); return false;”><img alt=”English” border=”0″ align=”absbottom” title=”English” height=”24″ src=”http://www.istanto.net/flag/uk-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”French” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Cfr&hl=en’); return false;”><img alt=”French” border=”0″ align=”absbottom” title=”French” height=”24″ src=”http://www.istanto.net/flag/france-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”German” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Cde&hl=en’); return false;”><img alt=”German” border=”0″ align=”absbottom” title=”German” height=”24″ src=”http://www.istanto.net/flag/german-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”Spain” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Ces&hl=en’); return false;”><img alt=”Spain” border=”0″ align=”absbottom” title=”Spain” height=”24″ src=”http://www.istanto.net/flag/spain-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”Italian” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Cit&hl=en’); return false;”><img alt=”Italian” border=”0″ align=”absbottom” title=”Italian” height=”24″ src=”http://www.istanto.net/flag/italy-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”Dutch” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Cnl&hl=en’); return false;”><img alt=”Dutch” border=”0″ align=”absbottom” title=”Dutch” height=”24″ src=”http://www.istanto.net/flag/dutch-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<br/><br/>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”Russian” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Cru&hl=en’); return false;”><img alt=”Russian” border=”0″ align=”absbottom” title=”Russian” height=”24″ src=”http://www.istanto.net/flag/russian-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”Brazil” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Cpt&hl=en’); return false;”><img alt=”Brazil” border=”0″ align=”absbottom” title=”Brazilian” height=”24″ src=”http://www.istanto.net/flag/brazil-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”Japanese” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Cja&hl=en’); return false;”><img alt=”Japanese” border=”0″ align=”absbottom” title=”Japanese” height=”24″ src=”http://www.istanto.net/flag/japan-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”Korean” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Cko&hl=en’); return false;”><img alt=”Korean” border=”0″ align=”absbottom” title=”Korean” height=”24″ src=”http://www.istanto.net/flag/korean-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”Arabic” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Car&hl=en’); return false;”><img alt=”Arabic” border=”0″ align=”absbottom” title=”Arabic” height=”24″ src=”http://www.istanto.net/flag/arab-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<a class=”translate” href=”#” target=”_blank” rel=”nofollow” title=”Chinese Simplified” onclick=”window.open(‘http://translate.google.com/translate?u=’+encodeURIComponent(location.href)+’&langpair=en%7Czh-CN&hl=en’); return false;”><img alt=”Chinese Simplified” border=”0″ align=”absbottom” title=”Chinese Simplified” height=”24″ src=”http://www.istanto.net/flag/china-flag.png” style=”cursor: pointer;margin-right:8px” width=”24″/></a>

<div style=”font-size:10px; padding:8px 0px 0px 0px”><a href=”http://www.istanto.net/how-to-creating-custom-google-translate-tools.html” target=”_blank”>Custom Google Translate Tools</a> – <a href=”http://www.google.com” target=”_blank”>Provided by google</a>

</div></div>

The result will be like this:

That’s looks beauty right? 🙂 You can add more translated language if you want. All you need to do is preparing the country flag pictures and edited the code. I wan’t someone created wordpress plugins for this custom translate, you’re free to use code in here.

That’s the lesson for today, have a nice day. 🙂

[/to_plus]

 

Related Search Terms:

    Digg Del.icio.us StumbleUpon Reddit Twitter RSS
Make Money Online, Miscellaneous, Personal, Short Reviews

Do you have a lot of money? You want to grown your money without risk or only accept a low risk? where did you invest your money? on bank? did you know how bank’s managed your money? bank interest rates suck in short and long terms? Well.. That’s a good question to start this article.

If you have lot of money and you want your money grown without need you to work, there is only 2 options available.

  1. Invest your money in property, business, etc.
  2. Deposit your money on bank and earn interest rate.

The problem is sometimes you may face risk to loss your money if you invest your money in private way (this way is not recommended unless you know the risk and person). With a good management you could survive and rewarded (more money for you). Bank is always secure as usual, but their interest rate this day actually to low, How you can call that “interest rate” if actually it’s not really “interesting”? 🙂 If you want to set your own rate without needed to worry about your money you should this, zopa.

[to_plus]

What is zopa? zopa is a safe place where people meet to lend and borrow money. This is a good website idea, by lend your money you could help others people to grown their business. In other side, you actually also make money for yourself, this is really perfect idea! Basically this is a “win-win” solution for both side. Errmm.. not really, 3 side win in here I forget zopa *lol* 😛

By lending in zopa you’re actually do a smart investment. Why? the reason is simple. People without money and plan to borrow money usually will using and managed that money with excellent way. Mostly 99% will run their business with serious because you know they have to pay back that money to you including fees. It’s not really bad as lender, if you’re just want to help people you can set your rate low.

After reviewing zopa I believe this is a good source website. Their management and strategy could help everyone to grown. Please remember of course everything has risk, it’s also applied for zopa.

If you’re not sure your money safe (lender) zopa give options to start your lend with only 50 euro. This money will spreaded, it wouldn’t spend to one person only (brilliant idea). We all know the risk, sometimes people do success to pay their loan but sometimes they don’t. In zopa I see they’re smart enough to manage your money and you will only faced a low risk, I recommended this site for everyone.

Good luck 🙂

[/to_plus]

Related Search Terms:

    Digg Del.icio.us StumbleUpon Reddit Twitter RSS