Quantcast
Viewing all articles
Browse latest Browse all 2621

How to test PHP 7 and WordPress MySQL/MariaDB Database connectivity using a PHP scriptnixCraft

Image may be NSFW.
Clik here to view.
I wanted to test if my PHP 7 and MySQL/MariaDB for WordPress are working. If not I wanted to see some error on screen or for my monitoring system. How to write a script for a quick PHP MySQL DB connection test for WordPress or any other database and send an email or text when site is down?

Viewing all articles
Browse latest Browse all 2621

Trending Articles