News & Blog

Get Size of Files in a Linux Directory Modified in the Past 24 Hours

July 25th, 2011 - Posted by Steve Marks to Server Management, Web Development.
With a system thats regularly creating files on-the-fly it’s important to keep track of the filesizes to monitor disk usage. One of the daily tasks I perform is to track the filesize of files created within the last day by running the following on the command line: find /directory_na...

Step-By-Step Guide to Putting a WordPress Site Live

July 25th, 2011 - Posted by Steve Marks to MySQL, PHP, Web Development.
Putting a website live normally involves transferring files from a development area into a live webspace and, depending on the site, moving a database too. The process is essentially the same when putting a WordPress site live but there are a few additional steps required to get fully up a...

Getting the Time a PHP Script Takes to Execute

July 20th, 2011 - Posted by Steve Marks to PHP, Web Development.
If your working with large resource intensive PHP scripts, or are simply looking to refine and optimize an existing bit of code, one of the steps you might take is to look at how long your PHP code is taking to run. We can do this within the PHP code itself by analyzing the time [...]...

FIFA 11 Stuck ‘Setting Up Trophies’ at 27%

July 20th, 2011 - Posted by Steve Marks to Gaming.
I’m not usually a fan of football games on consoles but FIFA 11 on the Playstation 3 still has me gripped even after 9 months of owning it. When loading it up recently however it got stuck at 27% when loading the trophies with the message ‘Setting up trophies’. Reloading ...

Get the Number of IP Address Occurrences in the Access Log

July 19th, 2011 - Posted by Steve Marks to Server Management, Web Development.
I had a scenario recently where bandwidth usage on a server was becoming an issue. As a result the need arose to find out if any third party websites or scripts were excessively referencing the server. To do this, one of the steps taken was to identify and locate any IP addresses repeatedl...

Switch Case Conditional Statement with MySQL

July 17th, 2011 - Posted by Steve Marks to MySQL, Web Development.
When selecting fields in a MySQL statement you can perform certain conditional statements to get the values you require based on other values. One of these is the Switch Case conditional statement. If you’re familiar with other programming languages you probably know how to do this a...

Getting MySQL Service Running Again After Yum Update

July 16th, 2011 - Posted by Steve Marks to Server Management, Web Development.
Being a fan of staying on top of the latest technology I was excited when I saw that WordPress 3.2 had been released. Not only from a functionality point of view, but a security one too. It boasted many improvements that I was keen to get my hands on. Upon going to update WordPress I [...]...

Looping Through an FTP Directory Using PHP

July 13th, 2011 - Posted by Steve Marks to PHP, Web Development.
If you’re a website developer you’ll probably have countless hours of experience using FTP, from putting sites live, renaming files, deleting files and more. This is made easy through using an FTP client installed on your machine. The process can also be just as simple by using...

Prevent CSS Padding Changing an Elements Dimensions

July 8th, 2011 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
Today I want to share with you a scenario I find myself coming across on a day-to-day basis and one that had me stumped when I first started to build HTML websites; the fact that when you add padding to a HTML element it has a direct impact on the width and height of that [...]...

CodeIgniter Google Static Maps V2 API Library

July 5th, 2011 - Posted by Steve Marks to PHP, Web Development.
The standard Google Maps JavaScript API is great for making fully functional, interactive maps. A lot of people don’t know however that Google also provide an API for generating static maps in the form of a normal image. This is great if you don’t need all the advanced features...