LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2024, 04:03 AM   #1
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Rep: Reputation: Disabled
Sending an SMS using Javascript / PHP


Any examples of how to do this on my Linux KDE Laptop for a web page?

Thanks
 
Old 05-10-2024, 09:17 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,236

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Did you do a search? Your heading turns up examples.
 
1 members found this post helpful.
Old 05-10-2024, 07:25 PM   #3
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
Did you do a search? Your heading turns up examples.
i would have liked to, just don't remember how to...
thanks
 
Old 05-11-2024, 01:37 AM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,236

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Copy and paste, or type the heading you gave the thread into yuur favorite search engine; ie google.

Here is the first hit I found, there are several.

https://rapidapi.com/blog/sms-api-javascript/
 
Old 05-11-2024, 10:03 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,712

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by alex4buba View Post
i would have liked to, just don't remember how to...
thanks
I find it incredibly hard to believe that you don't remember how to type words into a box, since you typed those words in the box HERE to open this thread. Putting those same words into http://www.google.com is how you do it, if you need to make a note of it.
 
Old 05-11-2024, 06:09 PM   #6
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
I find it incredibly hard to believe that you don't remember how to type words into a box, since you typed those words in the box HERE to open this thread. Putting those same words into http://www.google.com is how you do it, if you need to make a note of it.
Yes, I did several searches in Google and in this website and all I can find is companies / service providers offering solutions for large corporations for marketting purposes and that is NOT in my case. All samples I see are using Jason, which I am not familiar with.

I am a retired web designer living in a retirement viilage. There are around 600 residents, but each unit only has a unit number, not an actual street address.

Calling a plumber, electrician, a taxi or just a friend to visit is a hard job for the visitor to find my unit.

So, developed a web page, each resident is registered in a database that has in it their own mobile number and latitude/longitude of their unit.

This will go by SMS to a taxi driver, plumber, etc... that will take them, using Google maps to the village resident who clicked the "send" button on my web page. I personally only program the web page, I have no involvement in sending the SMS.

I hope you understand what I need the SMS service for.

PHP / Javascript will be fine.

Many Thanks
 
Old 05-12-2024, 10:24 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,712

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by alex4buba View Post
Yes, I did several searches in Google and in this website and all I can find is companies / service providers offering solutions for large corporations for marketting purposes and that is NOT in my case.
Oh??? You stated that you 'couldn't remember' how to do a search; now you claim to have done one and can't find anything, despite someone here handing you a link that they easily found?? If you copy and paste your EXACT WORDS for this threads subject line into Google, you get results.
Quote:
All samples I see are using Jason, which I am not familiar with.
Then you probably need to learn this if you want to proceed.
Quote:
I am a retired web designer living in a retirement viilage. There are around 600 residents, but each unit only has a unit number, not an actual street address. Calling a plumber, electrician, a taxi or just a friend to visit is a hard job for the visitor to find my unit.
Sorry, makes zero sense that there is somehow a place that has no street name/number/address scheme that anyone can follow. Maps and GIS data are publicly available. People didn't seem to have problems finding my old apartment number, since they all had signs/numbers on them. Can't fully imagine how mail gets delivered, utilities being installed/billed if you only have a single number and nothing for a street/unit/building.
Quote:
So, developed a web page, each resident is registered in a database that has in it their own mobile number and latitude/longitude of their unit. This will go by SMS to a taxi driver, plumber, etc... that will take them, using Google maps to the village resident who clicked the "send" button on my web page. I personally only program the web page, I have no involvement in sending the SMS. I hope you understand what I need the SMS service for. PHP / Javascript will be fine.
So if we write scripts, you'll be kind enough to accept them if they're PHP/javascript??

Not sure why anyone can't just use the fairly-ubiquitous 'share my location' feature on most phones these days to do the exact same thing, nor why you think a plumber/taxi driver is going to be able to accept this. Plumbers will get a sheet in the morning with a list of addresses, and GPS from there, or get a new call and the address is read to them from the dispatch. Which won't know which plumber to send out of the MANY they may have.

And all of this aside, you are going to *NEED* a device capable of sending SMS messages and you have two choices; sign up for an online service and follow their API, or buy a cell phone that you pay for and hook IT up. And you'll then need to somehow convince all your residents that they can trust you with their phone numbers for some database.
 
Old 05-13-2024, 03:28 AM   #8
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Oh??? You stated that you 'couldn't remember' how to do a search; now you claim to have done one and can't find anything, despite someone here handing you a link that they easily found?? If you copy and paste your EXACT WORDS for this threads subject line into Google, you get results.

Then you probably need to learn this if you want to proceed.

Sorry, makes zero sense that there is somehow a place that has no street name/number/address scheme that anyone can follow. Maps and GIS data are publicly available. People didn't seem to have problems finding my old apartment number, since they all had signs/numbers on them. Can't fully imagine how mail gets delivered, utilities being installed/billed if you only have a single number and nothing for a street/unit/building.

So if we write scripts, you'll be kind enough to accept them if they're PHP/javascript??

Not sure why anyone can't just use the fairly-ubiquitous 'share my location' feature on most phones these days to do the exact same thing, nor why you think a plumber/taxi driver is going to be able to accept this. Plumbers will get a sheet in the morning with a list of addresses, and GPS from there, or get a new call and the address is read to them from the dispatch. Which won't know which plumber to send out of the MANY they may have.

And all of this aside, you are going to *NEED* a device capable of sending SMS messages and you have two choices; sign up for an online service and follow their API, or buy a cell phone that you pay for and hook IT up. And you'll then need to somehow convince all your residents that they can trust you with their phone numbers for some database.
Dear TBone,

Have you ever lived in a retirement village in Australia? Probably not.
In 95% of villages, caravn parks and resort - there is NO street address
All mail and packages are delivered into a central mail room, where residents go and check to see if they got mail.
Service providers, friends and Taxi are wasting their time to figure out.
On the street I live, unit 18 is next to unit 136 etc...
You Don't have to believe me, in which country do you live?

Cheers
 
Old 05-13-2024, 06:01 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,712

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by alex4buba View Post
Dear TBone,

Have you ever lived in a retirement village in Australia? Probably not. In 95% of villages, caravn parks and resort - there is NO street address All mail and packages are delivered into a central mail room, where residents go and check to see if they got mail. Service providers, friends and Taxi are wasting their time to figure out. On the street I live, unit 18 is next to unit 136 etc... You Don't have to believe me, in which country do you live?
Really?? And does unit 18 have a sign out front with an "18" on it?? Or a "136" next door? And again, hard to believe with a central building that a plumber/taxi/whatever wouldn't go to to the central building and say, "Hey, I'm looking for unit 18...can you help me?" and no one there would know, nor that the person wouldn't CALL the number for the owner of unit 18 to say, "Hey, I'm at the central building...how do I get to you?".

Either way, nothing changes; you either need a phone/device that can send SMS messages and have it plugged into your computer, or you need to sign up for an online service and use it, according to their guides. Until you pick one of those options and move forward, there's zero else that can be done. There is no magical script for PHP/Javascript that will just send SMS without some sort of SMS capable device.
 
  


Reply

Tags
javascript, php, sms



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Parse output from KDEconnect SMS or read SMS database or read window title? Jason_25 Linux - Software 1 09-07-2022 12:13 PM
LXer: Ztorg malware hid in Google Play to send premium-rate SMS texts, delete incoming SMS messages LXer Syndicated Linux News 0 06-22-2017 10:21 AM
LXer: How to install kannel sms gateway on Debian Linux for nagios SMS notificationsSMS LXer Syndicated Linux News 0 01-01-2017 04:24 PM
GSM device for sending SMS messages: Siemens TC35 SMS Wireless Module UART/232 bicpen Linux - Hardware 1 01-12-2012 07:42 AM
How to send sms with sms-pl ? frenchn00b Linux - Software 0 10-01-2007 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration