Recently I was asked by a HAM Radio friend to work on a conversion of latitude and longitude coordinates to maidenhead grid. The code below is in “rough” PHP code on purpose to help illustrate the math behind the conversion. Feel free to clean/optimize it all I ask is that…
Category: PHP
Debian/Ubuntu LAMP Setup
The following code is for Debian 9 Stretch but should work on older Debian with minor changes
UNIX – Pi-Hole Project – Statistics
If you are using Pi-Hole you may find this script useful Currently this is designed to run on the server that is running Pi-Hole but as I have more than one I want to monitor I will soon have an update for additional. First make sure you update your /var/www/html/admin/scripts/pi-hole/php/data.php…
RedHat – WordPress Install
These steps are based on RedHat Server 64-bit Download RedHat Install RedHat Configure RedHat Install WordPress Configure WordPress Backup/Restore MySQL Database
PHP – File Download
When WGET isn’t available PHP comes to the rescue. In this example $path file name can be different than the $url file name or the same, if it is different it will be saved with the file name in $path
PHP – WordPress Backup (MySQL & Files)
After writing WordPress – Backup & Restore I came across a site that I do not have SSH/CLI access to so I needed to have another option. If you have SSH/CLI access it’s best to use the process on WordPress – Backup & Restore. Sometimes you just need a quick…
PHP – WordPress – Blog Info
This is a simple piece of code to provide basic information about your blog. The first lines of the code will restrict the PHP access to the command line interface (CLI) so not just anyone could/should be able to see the details. Additional Mime Types can be seen at: http://codex.wordpress.org/Function_Reference/get_allowed_mime_types
PHP – String Exists?
Sometimes when working strings we need to know if a character or another string is within the string, this below will help. Reference: http://stackoverflow.com/questions/13577041/php-string-contains