Quantcast
Channel: Must Be Built
Browsing all 15 articles
Browse latest View live

Getting Path Information with PHP

Given a true path of: PHP Output Notes $_SERVER['DOCUMENT_ROOT']; /var/www true document root $_SERVER['HTTP_HOST'] www.mustbebuilt.co.uk Host name $_SERVER['PHP_SELF'] /stuff/more/file.php Path of...

View Article


Cleaning out Smart Curly Quotes with PHP

Smart curly quotes are the bane of my life and they most commonly cause grieve when users cut and paste from Microsoft Word into a web form and you end up with the funny box shapes. This code was on...

View Article


Dividing Dynamic Content equally into Columns

The CSS float property is often used to create columns. Waiting in the wings are some newer techniques such as the CSS column-count property which will make adding columns much easier. For example...

View Article

Storing Values with Javascript's localStorage

As part of the range of new HTML5 Javascript goodies localStorage allows developers to store data client side for later reuse. Sounds familiar? Yep, just like cookies, but without the size limitations...

View Article

Four for out the Door - Essential PHP Extensions to finish that project

Image Manipulation When uploading images this handy PHP extension will allow you to manipulate images on the fly - resizing, renaming, change format and even add effects. PHP Image Magician PDF...

View Article


Strictly Javascript

There comes a time with a large Javascript project where having the code behave more like a 'usual' programming language becomes useful.  This is where 'strict mode' comes in. Javascript is very...

View Article

Creating Files with PHP via fopen(), fwrite(), fclose() and copy()

On a recent project I was getting some pages that were causing PHP to run slow.  Essentially the PHP was looping through various tables in the MySQL table to build a rather complex 'Mega Menu'...

View Article

Adding Form Fields Dynamically with Knockout.js

A couple of years ago I did a post entitled Adding Form Fields Dynamically with jQuery.  In this post I am going to re-visit the same problem but this time use Knockout.js to create the dynamic form...

View Article


Validating Radio Buttons Using Javascript (jQuery)

In online surveys you may want users to have to answer a radio button style question. You can set a default value with checked as follows: However, you have to make a decision what the default with be...

View Article


Recursive Javascript Functions

Just posted a codepen if anyone looking at Recursive Javascript functions.  The scenario here could I am sure be tackled other ways but I wanted to do it with a recursive function. Given an array of...

View Article

Limit The Number of Checkboxes 'checked' with jQuery

Quick code snippet. Assume you have: Then you could use the following jQuery:

View Article

Time for Flexbox? Some Simple Examples to Convince You

It looks like the time has come to dive into Flexbox.  This layout technology has been lurking on the fringes of CSS for a while now but with sites like the BBC and with frameworks like Bootstrap 4...

View Article

Flexbox Technicals - Part One

The concept of 'flexible box' or flexbox is name of the CSS3 flex layout model. Flexbox is based around flex containers and flex items. A flex container is a parent element to flex items.  Flex items...

View Article


Flexbox Technicals - Part Two

Before reading the following ensure you are happy with the flexbox concepts of main axis and cross axis discussed in my previous post. Justification on the main axis The CSS property justify-content is...

View Article

One Hell of a Week

Posted in capacity as Module Leader Group Software Development, Department of Computing Sheffield Hallam University A Morgue One hundred students, 10 clients, 5 labs of University PCs, overzealous...

View Article

Browsing all 15 articles
Browse latest View live