News & Blog

How To Install SOAP for PHP on a 1&1 VPS

July 30th, 2015 - Posted by Steve Marks to PHP, Server Management, Web Development.
If working with a third party service it’s possible that you might need to communicate with it using SOAP. This is exactly the scenario we found ourselves in today. The issue was however that the 1&1 VPS that the site was hosted on didn’t have SOAP, and inparticular SOAPCl...

Increase Default Git Bash Window Width

July 24th, 2015 - Posted by Steve Marks to Software, Web Development.
The Git Bash application is probably one of my most frequently used programs during a normal work day. One thing that’s really been a bug bear of mine for years now however is the default width of the window. It’s so thin that nearly every line of output gets broken onto multip...

Sorting a PHP Array with a Key of Decimal Type

April 28th, 2015 - Posted by Steve Marks to PHP.
There are many PHP functions available that assist with sorting arrays. The one we’ll be talking about in this article is the ksort() function which is intended to sort an array by key. Now, to sort an array where the keys are of type decimal you would ordinarily think the following ...

Comments Disappeared From WordPress Site

April 12th, 2015 - Posted by Steve Marks to MySQL, Web Development.
Something odd happened today; A WordPress site of ours that had been operational for many years suddenly stopped showing comments. Not only that, but when trying to submit a comment the following error was shown: “ERROR: The comment could not be saved. Please try again later.” ...

The 100% Guaranteed Method To Get YouTube iFrame Embeds Playing in HD by Default

April 10th, 2015 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
We were recently working on a site where we needed to display a full screen video embedded from YouTube using an iFrame. Now, normally when embedding a video on a site, we’d visit the video on YouTube, click ‘Share‘, and grab the embed code. That normally looks something ...

Prevent Body From Scrolling on Touch Devices using jQuery

April 10th, 2015 - Posted by Steve Marks to Javascript / jQuery, Web Development.
There are two scenarios I can think of when you might not want to the user to be able to scroll the window on handheld devices: 1. When a site is designed to fit within the boundaries of a viewport or 2. When a fixed full screen menu or modal window has opened, in which [...]...

DataTables Not Showing Processing Indicator During Server-Side Requests

April 9th, 2015 - Posted by Steve Marks to Javascript / jQuery, Web Development.
We use the DataTables jQuery plugin for the majority of applications where we need to display grids. It looks great, has a large number of customisable options available and is easy to work with. When dealing with large amounts of data it’s definitely advantageous to use the in-built...

Firefox Not Displaying Placeholder or Text Entered into Textbox

April 3rd, 2015 - Posted by Steve Marks to (X)HTML / CSS, Software, Web Development.
We use HTML5 input placeholders on the majority of our forms that we add to sites these days. They act as either instructional text (e.g. ‘Enter Keyword Here…’), or even replace labels completely. Whilst building a site recently, we came to perform cross browser testing a...

Solving Error “ERROR 1 (HY000): Can’t create/write to file ‘/tmp/#sql_9f3_0.MYI’ (Errcode: 17)”

March 31st, 2015 - Posted by Steve Marks to MySQL, PHP, Web Development.
Recently a site that we manage stopped working all of a sudden. The error being returned from the MySQL query was as follows: ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_9f3_0.MYI' (Errcode: 17) The error states that a file in the ‘/tmp/’ folder can’t be writte...

Removing the Query String from $_SERVER[‘REQUEST_URI’] in PHP

December 16th, 2014 - Posted by Steve Marks to PHP, Web Development.
When trying to get the current request URI in a PHP file you would normally use: echo $_SERVER['REQUEST_URI']; When recently using this however I found that it could also contain the current query string. After digging a bit deeper it turns that the addition of the query string can differ ...