May 2013 M T W T F S S « Dec 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Categories
- Cool (19)
- Economy (3)
- Edinburgh (10)
- Environment (6)
- Food & Drink (4)
- Football (3)
- Hardware (23)
- Humour (23)
- Marketing (3)
- Personal (170)
- Politics (7)
- Rants (47)
- Social networks (9)
- Software (23)
- Sport & Exercise (23)
- Technology (30)
- Travel (41)
- Uncategorized (2)
- Web development (44)
- Apple (25)
Tag Archives: php
Getting the basics right
I almost missed this story about a how mistyped opening PHP tag exposed a bunch of Tumblr data. This wasn’t sensitive data like usernames and passwords but rather the slip revealed database-related information and private API keys related to the … Continue reading
Horses for courses
I’m sick of the sniping — especially from those in the Ruby community. Ruby is nothing special nor new. The language itself didn’t arrive with the invention of Rails — some fellow and students and I toyed with it at … Continue reading
Intruder alert
PHP is often derided as insecure. Most frequently however, weakness is not down to the language itself but poor programming techniques by amateur coders who are unfamiliar with the myriad security practices that should be employed in a defensive programming … Continue reading
Behind the scenes
The PQP profiler from Particletree is a very handy thing to have in your development toolbox. However, it doesn’t deal with the ever-increasing amount of work done via Ajax requests. Or, at least, it didn’t. Back in the days when … Continue reading
Restoring PDO functionality
A few years ago, while PHP 5 was still in a state of flux, a change was made to the way that PDO handles parameters bound to prepared statements. Somewhere between versions 5.2.0 and 5.2.1 a change was made that … Continue reading
I am the one and only
After previously explaining how to harden PDO I’m going to expand on the basic class I developed with the help of some design patterns. A large part of using design patterns lies in recognising the situations in which each one … Continue reading
Catching at source
If your application does not catch the exception thrown from the PDO constructor, the default action taken by the zend engine is to terminate the script and display a back trace. This back trace will likely reveal the full database … Continue reading
A better phpinfo
The phpinfo() command comes in very useful when you want to check details about your PHP install and server setup. However, there is a lot of output and you won’t need it all. Not everyone knows that you can pass … Continue reading