Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question