RadioduinoWRT – a do it yourself webradio

RadioduinoWRTToday I want to present you one of my larger craft projects. This time it is not just about software, but also about the associated hardware. What is it? A web radio!
I like to listen to internet radio stations, but I didn’t want to run my pc only for listening to webradios.  Connecting my phone to my stereo either wasn’t a solution, since I’d rather wear this with me, because I don’t want to run for each SMS / Whatsapp message to the music system. And because I always like to tinker, it was obvious to build a web radio as a standalone device myself.
As this article has become a bit longer, there is a brief overview of the following sections of the article, so that everyone can quickly find what he looks for.

What is the RadioduinoWRT?
Considerations before building
What […]

Display PHP errors in Webmatrix

WebMatrix 2 - logoFor several weeks Microsofts development environment, called WebMatrix, is available in version 3. As already the first and second version was, WebMatrix 3 is ​​a free development environment for websites and web applications of different platforms such as ASP.NET, PHP, and HTML5.
I use WebMatrix from time to time to test, among other things, just one or the other PHP script. Sadly the provided/integrated web server shows by the default settings, so as it is delivered, no PHP error messages. So when the gremlins sneak in your PHP script and you have not caught all code in try-catch blocks, you only see a white page in browser. For productive environments this seems to make sense, but for a development tool, this is plain and simple said – bullshit!
To show the, in my opinion […]

TagKeywordFinder – a free WordPress SEO plugin

Last while browsing I came across a WordPress plugin called wpSuggest. This links Google’s autocomplete function (the thing called “Google Suggest”, which ensures that you get suggestions while typing your question) with the title field in the WordPress editor. So if you write an article in the WordPress backend and type the title wpSuggest will make suggestions for the perfect title.
I liked the way the Google Suggest feature was used here. However, I found that the combination of Google Suggest and the input field for the keywords/tags would make much more sense.  So in short I have developed a small WordPress plugin named “TagKeywordFinder”. This plugin works similar to the above mentioned wpSuggest, with the small difference that it is used when tagging the article. And this is how it looks like:

(If you’re not intrested in the setup process, skip it to 1:00.)
When you begin to assign tags for your […]

PHP workaround – how to use file_get_contents() without allow_url_fopen

php_artikel_logoI admit, the title of this article is somewhat misleading. The PHP function file_get_contents(), which can be used to read files from the internet into a string, just does not work with allow_url_fopen disabled. On that not even this article will change anything.
However, if you want to develop an application or a script, that should work on as many server environments as possible, such as a wordpress plugin, so there is a good workaround for all the environments where allow_url_fopen is disabled. And just this little snippet/workaround is what I want to show and explain to you today.

$file = "";
if (function_exists(‘curl_version’))
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $file);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$content = curl_exec($curl);
else if (file_get_contents(__FILE__) && ini_get(‘allow_url_fopen’))
$content = file_get_contents($file);
echo ‘You have neither cUrl installed nor allow_url_fopen activated. Please setup one of those!’;

First, it is checked whether the cURL extension is available on the server. If […]