The Android Debug Bridge ( ADB ) is an underutilised tool in my opinion. Over the last couple of months I have been doing a lot of work using Cordova and the Ionic Framework to create my field guide to NSW Marine Life for the Android platform. When I started…
Read MoreDebugging Web Applications With Fiddler On Linux
Fiddler is by far one of the most popular web debugging proxies available. It allows you to capture, examine, save, edit and replay all HTTP / HTTPSÂ requests made by a web based application. For many years it was available only on Windows systems. But recently the creator of Fiddler,…
Read MoreMagic constant not working with require_once
Its funny when a new feature is added to your language of choice how quickly it gets embraced and used within your code. Today upon uploading some code to a clients shared hosting environment I was greeted by the following error:
Uploading a file to display phpinfo() I was able to ascertain the server was running PHP 5.2.17. But after a bit of searching I found the __DIR__ magic constant was not added to PHP until 5.3.
Ends up if your code is going to run on older installs the best solution is to replace __DIR__ with dirname(__FILE__) this provides the same functionality as using the __DIR__ magic constant but works with versions of PHP from 4.0.2.