LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sending an SMS using Javascript / PHP (https://www.linuxquestions.org/questions/linux-software-2/sending-an-sms-using-javascript-php-4175736875/)

alex4buba 05-10-2024 04:03 AM

Sending an SMS using Javascript / PHP
 
Any examples of how to do this on my Linux KDE Laptop for a web page?

Thanks

camorri 05-10-2024 09:17 AM

Did you do a search? Your heading turns up examples.

alex4buba 05-10-2024 07:25 PM

Quote:

Originally Posted by camorri (Post 6500904)
Did you do a search? Your heading turns up examples.

i would have liked to, just don't remember how to...
thanks

camorri 05-11-2024 01:37 AM

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/

TB0ne 05-11-2024 10:03 AM

Quote:

Originally Posted by alex4buba (Post 6501000)
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.

alex4buba 05-11-2024 06:09 PM

Quote:

Originally Posted by TB0ne (Post 6501104)
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

TB0ne 05-12-2024 10:24 AM

Quote:

Originally Posted by alex4buba (Post 6501192)
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.

alex4buba 05-13-2024 03:28 AM

Quote:

Originally Posted by TB0ne (Post 6501272)
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

TB0ne 05-13-2024 06:01 PM

Quote:

Originally Posted by alex4buba (Post 6501358)
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.


All times are GMT -5. The time now is 02:07 AM.