Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Archive for December, 2017

Dear Servage customers – Happy 2018

Sunday, December 31st, 2017 by Helge
Servage_new_year2 With 2017 coming to a close, Servage wanted to reach out and send our best wishes to you and yours! I hope that 2018 holds success and good fortune in any endeavour you pursue. It has been a pleasure working for you and we are looking forward to a successful and healthy 2018! This post is nothing but a nice greeting, and encouragement to provide ideas and suggestions for future topics. My own interests are web development and innovative services/hardware, but I am happy to hear your tips on cool stuff.

Using Responsive Images in HTML5

Wednesday, December 27th, 2017 by Servage
responsive-designThe <picture> element has been part of HTML5 for a relatively long time. Surprisingly, the element is still quite rarely used, although it clearly has some benefits to it. Most importantly, you can choose which version of an image to load based on the screen size of a visitor’s device. Responsive Images: The Old Way Images are usually placed inside containers such as divs. If there is no CSS applied to the image, the image takes as much space as its dimensions are. In most cases, this causes the image to “overflow” the container div. The typical way of fixing this is to add “max-width: 100%” to the image. This resizes the image ...

PHP Handler Engines Explained

Thursday, December 21st, 2017 by Servage
phpAlmost all PHP developers must have heard of either mod_php, PHP-FPM or FastCGI before. However, you might not be aware of what they actually are and do behind the scenes of a web server or how they are different from each other. These handlers are a base requirement for the PHP language to run on web servers so it’s good to know how they operate. PHP Handlers Explained Briefly Regardless of what PHP handler a web server uses, the process of executing PHP code is mostly the same. A web server receives a request to serve a PHP page. It then sends the request to a PHP handler which processes the request, and ...

Introduction to NoSQL

Saturday, December 16th, 2017 by Servage
databaseWhen working on websites and applications, there are many databases to choose from. The most common choice for websites is MySQL or MariaDB, which are essentially the same database systems. Another alternative that has gained popularity recently is NoSQL databases. Today it’s time to look at how NoSQL databases work, how they differ from MySQL and if there are any benefits in using a NoSQL database instead. What is NoSQL? You have likely used either MariaDB or MySQL in the past. Both of these are relational databases and differ from NoSQL databases quite a lot. The first misconception about NoSQL is that it wouldn’t use SQL like the name might suggest. In fact, ...

FTP Integration for Web Applications

Monday, December 11th, 2017 by Servage
FTPOn some websites, you need the ability to modify files stored on a web server. You might want to upload new files, rename them and download some to your computer. In general, there are two choices for implementing this: FTP or a file manager GUI embedded to a web page. This time we will focus on a hybrid solution between these two, which allows you to integrate an FTP client as part of a website. Method 1: net2ftp Let’s start with a rather old but de-facto web-based FTP client. net2ftp is indeed quite old and has not been updated since 2013. However, it has been the only viable solution for integrating FTP with ...

Documenting PHP APIs

Friday, December 8th, 2017 by Servage
APIA good documentation is a requirement for a good API. If you make a good public API but the documentation is lacking, your API will not see as big of an adoption as it would with a well-written developer-friendly API. Let’s have a look at how to write documentation for a PHP-based API and also what a documentation should have, no matter what language it is written in. Writing a Good API Documentation Before looking at how to write API documentation, let’s consider the things a documentation should have. We will be focusing on a REST API, although the points mentioned usually apply to other types of APIs as well. First of all, every ...

Looking at Bootstrap 4

Sunday, December 3rd, 2017 by Servage
Bootstrap4The development of the latest version of Bootstrap entered a beta stage this summer. Going from alpha to beta introduced some major changes, and now that Bootstrap 4 is in beta, there should no longer be many breaking changes. This gives us a good chance to look into the future and see what new is included in the latest version of most popular front-end CSS framework. The New Grid While the grid in Bootstrap is still divided into 12 columns, it now uses Flexbox by default. A new grid tier “xl” has also been added. This means you should use tiers one level higher than previously. For instance, col-md-4 in Bootstrap 3 is ...