If there’s one thing PHP needs, it’s a bit more convention. Node and Ruby can both attribute a large portion of their success to their respective package managers. Unfortunately PHP has such a… diverse history that using different components between frameworks and projects often requires a cumbersome set of differing bootstraps and loaders. PSR-0 looked set to be at least a partial solution; a common naming convention such that files could be loaded in the same way, regardless of their original framework. And they royally screwed it up. Continue reading »
Entries tagged with "php"
I love my little Linode (shameless referral link), running several sites on the smallest instance available which gives just 512Mb of memory. With the popularity of HL Twitter and Plex Export, I pretty often max out the available memory and Apache starts dropping requests. So I recently set about looking at the best way to reduce my memory footprint and settled on dropping Nginx in front of Apache. This guide explains how and why. Continue reading »
Within the world of web applications, and much more relevantly within PHP, there is an abundant choice of frameworks available for use. It almost goes without saying that any project begun nowadays has at its foundation some form of framework, if only to remove the tedious repetition every project involves (requests, routes, database, caching etc). Within this world of frameworks though, two groups continually push to create new frameworks. Continue reading »
Since my last post on HL Twitter almost a month ago, I’ve accrued another 3,000 downloads bringing my total to just over 8,000. Now obviously this doesn’t mean 8,000 people are using my plugin, undoubtedly many of them are repeat downloads etc. But it does mean I now have a much larger userbase compared to my initial development, and with that comes “support requests”. Continue reading »
Last week I was annoyed; I had passed 20,000 tweets on Twitter (@Dachande663) and didn’t realise until I was almost a hundred over. So, with a bit of prompting from @Si, I set about to make a really simple, highly focused app to remind you when you’re about to pass Twitter milestones. Introducing MyTweetCount Continue reading »
This morning I set up YOURLS on one of my other shorter domains (l0ke) and added short links to all of my posts here using a custom plugin I’m going to release soon. In the midst of all this tinkering I decided to try and “improve” upon the YOURLS code for viewing a shortlink preview. YOURLS provides two view options for previews, it can show a detailed breakdown of the link and all traffic or nothing at all. What I wanted was a simple overview without all the fuss (and loading times) of the full-featured option. Continue reading »
A plugin I made a long time ago for WordPress 2.x created short URLs for posts and stored them as a custom field for later use. This meant posts would get an automatic tinyurl (or similar address) for visitors to use. It always annoyed me however that this wasn’t built into the WordPress core. Not the generation of short URLs themselves, but that there was no standardised way to retrieve them from themes meaning each one had to be customised. Well I was pleasantly surprised to find that as of WordPress 3 there is now a set of functions for handling short URLs and they are even displayed within the admin area! Continue reading »