Bennett Hollstein

Web developer

[XAMPP for Mac] Change htdocs directory

In this short tutorial you will learn how to set up XAMPP Apache Server to serve a different htdocs folder and how to solve the “Access Denied!” error when doing so. Open XAMPP, stop Apache and click on “Configure” Click “Open Conf File” and confirm with  “Yes” Search for “DocumentRoot” and replace the lines “DocumentRoot” …

How to use Firebase (Cloud Messaging)/cordova-plugin-firebase with Phonegap Build

Hello, you are probably here because you are building an app with Phonegap and want to use the Firebase Cordova plugin (cordova-plugin-firebase) but as you use Phonegap Build and the plugin isn’t compatible you can’t… – unless you follow these steps: 1. Clone the repository You’ll need to clone the GitHub repository ( to your …

Use GitHub Desktop (for Mac) for every Git Repository

Hello, when using GitHub Desktop you can only use GitHub Repositories by default, but with a little help of the command line it is possible to use any Git Repository (self-hosted, BitBucket, GitLab etc.). Please notice that I am using a Mac, GitHub Desktop for Mac and the default Mac Terminal. Commands or button layouts …

[PHP Snippet] Simple Paging Script with MySQL and PHP

Hello, here is a simple script to enable Paging with a MySQL Database: $command = “SELECT * FROM `posts` ORDER BY added DESC”; // You can change, generate this however you want $perPage = 20; // Entries per page if (isset($_GET[“page”]) && $_GET[“page”] !== 0) { $page = $_GET[“page”]; } else { $page=1; }; $start_from …

[PHP] Completely flip string


for my latest project ( I needed to completely flip a string.

Completely? Yes! ¡sıɥʇ ǝʞıl

For this I needed a PHP function to do so, but I couldn’t found one online so I did one myself. If anyone needs such a function, feel free to use it!

function flipstring($string) {
 // Flipstring function (c) vantezzen
 $string = strrev($string);
 $x = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "m", "n", "r", "t", "v", "w", "y", ".", "[", "(", "{", "?", "!", "\'", "<", "_", ";");
 $y = array("\u0250", "q", "\u0254", "p", "\u01DD", "\u025F", "\u0183", "\u0265", "\u0131", "\u027E", "\u029E", "\u026F", "u", "\u0279", "\u0287", "\u028C", "\u028D", "\u028E", "\u02D9", "]", ")", "}", "\u00BF", "\u00A1", ",", ">", "\u203E", "\u061B");
 $string = str_replace($x, $y, $string);
 return $string;

You need to unicode decode the string afterwords, I used these function to do it:

I used to get the unicode codes. This website does the same thing as the PHP function, just that it uses JavaScript to flip the string.

[How to] Get Pi MusicBox running on Raspberry Pi 3

The current PiMusicBox Release (0.6) doesn’t support the new Raspberry Pi 3… by default. But with a little bit of work you can get it to also run on the RPi 3. Please notice that the latest Beta release of PiMusicBox (Show on GitHub) should support the RPi 3, but you can use this method …