Technical Lead based in Manchester, UK

Querying Source Servers with PHP : Part 2


So I have my JSON data which contains all the query information which was returned from the Source Query Protocol. I’m storing it as a flat JSON file - the reason being (as discussed in my last post) is simply due to speed (or the assumption it would be faster). I don’t want to be getting into caching database queries, optimising the indexes, normalisation etc… As this project is for fun, let’s just store the JSON on the file system, and pull the data out when we need it.…
Read more ⟶

Querying Source Servers with PHP : Part 1


Over the Christmas Period, I decided to develop a website to monitor the multitude of gaming servers that I host. As a game server provider, I’ve often wondered how many players are actively playing across the network. For this, I decided to use a simple LEMP (Linux, NGINX, MySQL, PHP) environment. Furthermore, I wanted this website to be heavily reliant on JSON data, and would try to avoid pulling data from MySQL where possible - as I’m assuming pulling from a JSON file (using caching), is faster than from MySQL.…
Read more ⟶

Shorthand If/Else (ternary) Statements - C#, C++, Python & PHP


I’ve been going through the multiple languages I know recently, and refreshing my knowledge. After working with Python for a few months, I found going back to C# very easy. I’ve noticed many similarities except for a few; In my opinion the ternary operator slightly differs from each language. So I’d thought I’d write these findings down for future use. C# & C++ variable = (input > 0) ? ’true’ : ‘false’;…
Read more ⟶