Home > Article > Backend Development > php detects whether application is installed
php seems unable to do it! Unless the software is installed, it will actively send a request to php!
Otherwise it is impossible! php is a server-side scripting language! No ability to monitor client tracks! (Recommended learning: PHP video tutorial)
Whether it is a free or paid server, there are still many website monitoring services and tools. If our ordinary personal use is not monitoring It is so complicated that there is no need to build a powerful tool like zabbix. Generally, individuals cannot use it or cannot build it. At the same time, there are many third-party program source codes or monitoring platforms to choose from on the Internet.
PHP Server Monitor is a script to check if your website and server are up and running. It comes with a web-based user interface where you can manage services and websites, as well as manage users for each server using mobile phone numbers and email addresses.
Features:
Monitor services and websites. Email, SMS, push notification, telegram notification. View historical graphs of uptime and latency. Has 2 levels of user authentication (administrator and regular user). Logs of connection errors, outgoing emails and text messages. Simple cronjob implementation to automatically check your server.
There are two different ways to monitor a server:
Service
will connect to the input on a given port IP or domain. This way you can check if certain services on your computer are still running. For example, to check your IMAP service, enter port 143.
Website
You can enter a website link and it will open the website using cURL and check the HTTP status code. If the HTTP status code is in 4xx/5xx, it means that an error occurred and the website is not accessible to the public. You can also set up regular expressions to match content on the page itself. If the regex returns no matches, the site is considered down. In both cases, the script will return to "offline status" and start sending notifications.
The above is the detailed content of php detects whether application is installed. For more information, please follow other related articles on the PHP Chinese website!