WAMP: Standard installation issues

I just installed a WAMP environment (Windows Apache Mysql PHP) on my computer as I haven’t really been writing any PHP-code recently and I felt like doing it again. I…I just installed a WAMP environment (Windows Apache Mysql PHP) on my computer as I haven’t really been writing any PHP-code recently and I felt like… Continue Reading


PHP: Enable CURL in WAMP environment

So I needed to enable Curl to run a PHP script today and my WAMP installation didn’t have CURL enabled “out-of-the-box”. This was however easily fixed by following these steps:…So I needed to enable Curl to run a PHP script today and my WAMP installation didn’t have CURL enabled “out-of-the-box”. This was however easily fixed… Continue Reading


To fake a PHP enum

Today I was sort of in a need of an enum in PHP. This, of course, doesn’t exist so I had to make the best of what I had. I…Today I was sort of in a need of an enum in PHP. This, of course, doesn’t exist so I had to make the best of… Continue Reading


Intercepting all errors in PHP

Sometimes you get annoying errors in PHP that refer to the server error log. If you do not have access to the log, because your pretentious web hosting company does…Sometimes you get annoying errors in PHP that refer to the server error log. If you do not have access to the log, because your pretentious… Continue Reading


Obtaining the current file name

For some reason I just needed to get the name of the file I was currently in. So, here is a small function I cooked up which returns the name…For some reason I just needed to get the name of the file I was currently in. So, here is a small function I cooked up… Continue Reading