A
A
alex01s2022-01-20 17:38:37
PHP
alex01s, 2022-01-20 17:38:37

How to receive notifications through PHP?

Hello. How can you implement sending and receiving notifications from the site to one computer or smartphone (not counting a self-written script that will check the response of the site every few minutes)? Perhaps there are ready-made solutions or services, or applications (for android)?

PS Preferably without using E-Mail

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SKEPTIC, 2022-01-20
@alex01s

See what notifications.
If it’s about new orders or something like that, then a telegram bot + puffy script that will send a request to the cart’s url to send a message. In the internet there is an example of code in php and other languages ​​+ the dock of the cart itself.
If it’s about a server crash, then there is either a self-written monitoring system from several locations, or some kind of ready-made solution like Zabbix, or ready-made services like ping admin. They monitor your site or server from dozens or hundreds of locations around the world and send notifications to cart/sms/email, etc. You can configure the frequency of checks (once per second, hour or minute, etc.) and the list of locations from which the check will be performed. You will have to pay a pretty penny for each check. Accordingly, the more checks and locations - the greater the bill for the month. Actual payment. You throw a couple of hundred rubles from lunches on the balance sheet, they are spent on themselves.

U
Ukrainskiy, 2022-01-20
@Ukrainskiy

Bot in telegram is the easiest option.

T
Timur Maslov, 2022-01-20
@tmaslov22

You can look in the direction of web sockets. Only the client must have a browser. In extreme cases, you can send via SMS / Email / Bots for messengers, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question