Log events via PHP to database with Windows or Linux command line

Log events via PHP to database with Windows or  Linux command line
Here’s a neat example (for Linux and Windows systems) of how to easily capture (log) and store the result of some script or program or really anything, in a central database table. Sure you could use just a log file, but spinning up an instance of MySQL (or SQLite) is trivial, and in the long ...
Newark , US
5:50 am
35°F
Light rain
High: 38°F
Low: 32°F
Wind: 3 mph