Servage Magazine

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

Beautiful date range picker for Bootstrap

Tuesday, June 18th, 2019 by Servage
date-range-pickerAdding dates via input elements in forms can be cumbersome unless a date picker is used. There are a few plugins available for jQuery and Bootstrap which make this process simple - yet implementing a powerful and advanced tool. The tool described below is called "Date Range Picker for Bootstrap" and is ready to go with a very simple implementation. Getting started The first step is to include the relevant resources into your site. The dependencies are Bootstrap (and jQuery), so you  need to get them first. Thereafter add the resources for the data range picker plugin. <!-- Include dependencies --> <script type="text/javascript" src="//cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js"></script> <script type="text/javascript" src="//cdn.jsdelivr.net/momentjs/2.9.0/moment.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3.3.2/css/bootstrap.css" /> <!-- Include date range picker ...

XML-RPC – WordPress feature to watch out for

Friday, May 31st, 2019 by Helge
WordPress has long been offering built-in features that allow you to remotely connect to your site - of course, very smoothly and desirably when you do not have direct physical access to your computer. For a long time, the main solution to this was a file named xmlrpc.php - but in recent years the file has become more of a pest than a solution. xmlrpc-wordpress Now maybe your first thought is "xmlr ... what?" Don't worry, we'll go through everything you need to know, what the risks are and how to fix them on your WordPress site. What is Xmlrpc.php? XML-RPC is briefly a function ...

WordPress 5.2 is here – higher requirements for PHP versions

Thursday, May 23rd, 2019 by Helge
In the beginning of May, the latest WordPress version 5.2 or Jaco was released (named after the revolutionary jazz bassist Jaco Pastorius). In addition to the usual fine-tuning of security and stability, WordPress 5.2 also contains a lot of new useful functions.wp52betafeatured-180x180 Worth mentioning is, for example, that the WordPress team built on Site Health, a set of tools that focus on security and page speed introduced in version 5.1, with the site Health Check, which facilitates troubleshooting common configuration problems. Site Health Check also enables developers to more easily include debugging information for anyone who manages the site. There are also a number of useful news for developers, which you can ...

New Servage Hosting account – Back Up

Tuesday, May 21st, 2019 by Helge
Restore your files and databases Did you know that at Servage, we make all the backups on your files and databases available to you directly in your own home directory? If not, we definitely recommend you read this post!backuprestore Most have ever needed to recover data from a backup - whether it's your laptop that crashed, your phone's latest OS crashed, or an update of your WordPress made the page unusable. The third scenario is most common for our customers to have suffered (although we are sometimes consulted in the other examples also ). In this blog post we will go through three ...

New Servage Hosting account – Application installer

Tuesday, May 14th, 2019 by Helge
Install applications with view clicks! Our application installer helps you to install and use complex apps with few clicks only. Our system will set up the files and the associated database. It is very easy to install tools like e.g. Wordpress, Joomla, Coppermine, openCart and many more. Here, you find a step by step instruction how to use the Servage application installer: WordPress-VS-Joomla-VS-Drupal https://servage.zendesk.com/hc/en-us/articles/115000057163-Application-Installer If you should decide to install a new application on the host on which you already installed a tool, you can simply uninstall the existing tool tool and then do a new installation. Here, you see how to uninstall ...

New Servage Hosting account – SSH

Friday, May 10th, 2019 by Helge
Screenshot_2019-05-07 How To Log In Via SSH For each Servage hosting account, we are offering one SSH account. SSH stands for Secure Shell and is a way to log in to the server to be able to work directly on the server via text commands. When people refer to 'using SSH', they are referring to using an SSH client to connect to another computer's SSH server in  order to remotely run commands on that computer. Any computer is capable of running both an SSH client and a server. SSH has plenty of advantages, it allows the encryption of data so that those malicious would-be attackers cannot access your user information and passwords. SSH ...

New Servage Hosting account – Helpdesk

Tuesday, May 7th, 2019 by Helge
Almost all Servage customers are moved to our new platform (V2). Of course, plenty of questions occur since the functionalities are implemented differently in the new control panel and some time is required to get used to that system. Servage created a Helpdesk with hundreds of posts to expHP_1lain the new control panel and to show where you can find the functions. Our Helpdesk has step by step instructions, supported by screen shots directly from the Servage Webhosting account. You find the Helpdesk on this URL: https://servage.zendesk.com/hc/en-us On the dashboard of our Helpdesk, you find categories. When you click on the categories, you find the related ...

CSS sprites are cool and useful

Thursday, May 2nd, 2019 by Servage
  How CSS Sprites Work There is an interesting story about Vilfredo Pareto, an economist who made an observation on the wealth of most of the nations in UN and found that 80% of the wealth of a nation is in the hand of 20% of the people in that country. This became famous as the 80/20 rule in the economic world there after. In our computing world especially in case of web development and web developers who are focusing on performance optimization technique this same rule is working for the code. There are only 20% codes, which are consuming 80% time of the client-server interactions. This is particularly true for http requests. Us web programmers are ...

More with CSS Visual effects

Saturday, April 20th, 2019 by Servage
transforms Transform Values: transform function(s) | none Default: none Applies to: transformable elements (see sidebar) Inherits: no This article focuses on the more straightforward 2-D varieties because they have more practical uses. Transforms are supported on all major browser versions with vendor prefixes. They are not supported at all on IE8 and earlier, Firefox 3 and earlier, and Opera 10.1 and earlier. You can apply a transform to the normal state of an element and it will appear in its transformed state when the page loads. Just be sure that the page is still usable on browsers that don’t support transforms. It is common to pull out the transforms only when users interact with the element via a ...

Variable-typing in PHP

Tuesday, April 16th, 2019 by Servage
php-explorer-tab-search PHP is a very loosely typed language. This means that variables do not have to be declared before they are used, and that PHP always converts variables to the type required by their context when they are accessed. For example, you can create a multiple-digit number and extract the "nth" digit from it, simply by assuming it to be a string. In the following snippet of code the numbers 12345 and 67890 are multiplied together, returning a result of 838102050, which is then placed in the variable $number. Automatic conversion from a number to a string <?php $number = 12345 * 67890; echo substr($number, 3, 1); ?> At the point of the assignment, $number is a numeric variable. ...

Recent articles

Create .zip files with JavaScript dynamically

The JavaScript library JSZip provides you with the ability to generate .zip files dynamically. This way you can send lots of data to a user in a convenient and bandwidth-saving way. With JavaScript becoming more and more powerful, and the amount of data handled by JavaScripts increasing every day, this is a great way to communicate with the user. Most users generally accept zip files from trusted sites - assuming ...

Running terminal commands with PHP

Sometimes you may find yourself in a situation where you want to run more than just PHP code. Perhaps PHP does not have a built-in function for what you want to do or you want to run some custom commands, such as executing an external program. There are multiple ways to achieve this, and we will learn how to do it in two different ways. The usual way: exec() and shell_exec() These two ...

How to build a successful site for e-commerce

E-commerce is quickly turning into a must-have for modern businesses. And why shouldn’t it when it’s relatively cheaper than selling products at a physical location, always having to worry about rent for your shop and a whole lot of others expenses. With an e-commerce business you can basically sell anything, no matter how big or small. And if you have good suppliers, you don’t even have to worry about having too many ...

Using DOM elements in Javascript – Part 4

JavaScript came about during a dark and lawless time, before the web standards movement, when all the major players in the browser world were—for want of a better term—winging it. It likely won’t come as a major surprise to anyone that Netscape and Microsoft implemented radically different versions of the DOM, with the prevailing sentiment being “may the best browser win.” insertBefore() The insertBefore() method, ...

Using DOM elements in Javascript – Part 3

Inner HTML gives us a simple method for accessing and changing the text and markup inside an element. It behaves differently from the methods we’ve covered so far. Let’s say we need a quick way of adding a paragraph of text to the first element on our page with a class of intro: var introDiv = document.getElementsByClassName("intro"); introDiv.innerHTML = "<p>This is our intro text</p>"; The second ...