Archive for php

PHP and WordPress Encryption and Decryption Tutorial

sethmatics-learn-php-encryption-banner

This is the example I built while learning how to properly protect password before they are stored in the database. I’ve seen dozens of plugins simply take in API paramters like “username and password” and just store those values in the database for use. How horrible is that! We decided to do the right thing and learn about encryption security…

read more

Downloading a PHP file using fopen (anywhere on the server)

capture-php-code-with-butterfly-net

While migrating a website today, we ran into some issues. This issue was caused by the previous developers trying to “hide code” from the end users so that they could not move the website away from the marketing agency (very shady). Below is the PHP code we used to download a working copy of the “hidden” file. As you can…

read more

Removing double line breaks from WordPress files

fix-double-line-breaks-tutorial-2

Have you uploaded a theme or plugin, and then attempted to edit the files to find out there are “double line breaks” every place there should be single line breaks? It makes the files look REALLY messy huh? We have been battling this for years. Finally we decided to look closer and find a solution. The solution is actually VERY…

read more
//don't enter GA code in footer anymore