Current location: Hot Scripts Forums » Programming Languages » PHP » [SOLVED] What needs to be done for sending SMS to Mobiles Using PHP


[SOLVED] What needs to be done for sending SMS to Mobiles Using PHP

Reply
  #1 (permalink)  
Old 04-03-08, 09:00 AM
suru_epn suru_epn is offline
New Member
 
Join Date: Dec 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] What needs to be done for sending SMS to Mobiles Using PHP

Hi Friends,

What i can do for sending SMS to mobiles using PHP...



Plz Help
__________________
Reply With Quote
  #2 (permalink)  
Old 04-03-08, 09:03 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Reply With Quote
  #3 (permalink)  
Old 04-03-08, 10:27 AM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
If you know the service provider for the number, it is also possible to do via email and an sms/mms gateway, free of charge. Take a look here for a list of gateways
http://basicstate.com/htm/page.htm

Jay
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName

Last edited by Jay6390; 04-03-08 at 10:29 AM.
Reply With Quote
  #4 (permalink)  
Old 04-03-08, 04:49 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
Quote:
Originally Posted by Nico View Post
Very nice work on that PHP class Nico. I like how you have it layed out.

Pete
__________________
Reply With Quote
  #5 (permalink)  
Old 04-10-08, 08:50 AM
scott2500uk's Avatar
scott2500uk scott2500uk is offline
Coding Addict
 
Join Date: Apr 2006
Posts: 275
Thanks: 2
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by Jay6390 View Post
If you know the service provider for the number, it is also possible to do via email and an sms/mms gateway, free of charge. Take a look here for a list of gateways
http://basicstate.com/htm/page.htm

Jay
Jay with that site is there a way of checking what the provider is to a number?

I presume you could take the country code and that would narrow down the list but is there away of pinpointing the provider?
Reply With Quote
  #6 (permalink)  
Old 04-10-08, 09:16 AM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
It used to be fairly simple because mobile phone numbers were stuck to their prefixes, however these days, portability is an issue that you have to come.
The only way to guarantee that you find the correct home network of the mobile phone is to do a HLR(Home Location Register) lookup. There are a number of sites that will allow you to test their system for home networks, however they are limited to the number of requests per ip in general, to stop abuse, and force you to pay for using their service.

I suggest you use the good old Google and shop around for the cheapest. remember you will only need to do 1 lookup per number in reality per every 2 months say, to ensure that the network it is with is current. You could even get your clients to go to a HLR site and look up the network for you, thereby reducing the number of requests from your IP to 0, and still maintaining the numbers. It will be a hassle for your client to do, but for free sms messages, it will be worth their two minutes time.
Once a number has been entered into your site with a network, you could save that information for the next time the user accesses the site

All just idea's you will have to work around if you want to make it as free as possible

Jay
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Reply With Quote
  #7 (permalink)  
Old 04-10-08, 09:33 AM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
With regards to the previous post, here is an example site for HLR lookup. It gives free lookups for an IP for x amount of times, then blocks. It also allows you to get 10000 lookups for approx $175USD (110 EURO's) which is more than 50 lookups per $1USD
http://www.smssubmit.se/en/hlr-lookup.html

Please not that I am by no means saying this is the cheapest service

Jay
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Reply With Quote
  #8 (permalink)  
Old 04-11-08, 03:15 AM
scott2500uk's Avatar
scott2500uk scott2500uk is offline
Coding Addict
 
Join Date: Apr 2006
Posts: 275
Thanks: 2
Thanked 2 Times in 2 Posts
Im currently using http://www.tm4b.com/ to send txt messages but although its quite cheap and you can send to almost anywhere in the world it would be nice if you could get it for nearly 1p per txt etc.

The thing is using that list for all the service providers and then ontop of using an HLR lookup it seems that there are too many places it might not work.

also for example using that list my service provider is Orange so i would use number@orange.net

when using the above it doesnt work. Maybe the list isnt upto date?

Last edited by scott2500uk; 04-11-08 at 03:24 AM.
Reply With Quote
  #9 (permalink)  
Old 04-11-08, 03:45 AM
scott2500uk's Avatar
scott2500uk scott2500uk is offline
Coding Addict
 
Join Date: Apr 2006
Posts: 275
Thanks: 2
Thanked 2 Times in 2 Posts
http://www.nowsms.com/whatisnowsms.htm

found this site. by what im reading here is that you could plugin your phone to this software and send sms' via your phone. Now if your on an unlimited txt plan with your service provider then free txts except monthly contract and cost of running software mobile phone.
Reply With Quote
  #10 (permalink)  
Old 04-11-08, 10:10 AM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, the list may not be a complete up to date version. The one on wikipedia seems to show that there is no email to sms/mms gateway for orange UK
http://en.wikipedia.org/wiki/SMS_gat....2F_Web_to_SMS

Jay
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 10:17 AM
help with error messages.. please APuppyDog PHP 2 10-05-06 11:09 PM
Need help in send some value through a URL for send SMS sujata_ghosh PHP 0 09-11-06 06:20 AM
PHP Not Working ProjectJustice PHP 2 06-25-06 07:37 PM
PHP Downside--Solutions? Amulet PHP 10 07-15-05 08:26 AM


All times are GMT -5. The time now is 07:40 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.