Servage Magazine

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

Articles Tagged ‘guide’

Remember secure passwords easily

Monday, January 22nd, 2018 by Servage
keypadIt's easy for service providers to ask their users to use secure passwords. After all it is the user who is supposed to remember it. Obviously it is better for everyone if secure passwords are being used everywhere, but for many people it represents an annoyance to use a password like "237IMBd!" instead of "pizza". However, there are plenty of ways making it easier to remember secure passwords - and some of them even add a little bit of fun to the process ;-) I would like to explain my personal way of generating and using secure passwords as an inspiration to figure out a way that works for you, andĀ moreover, ...

Security feature GeoIP Security

Thursday, January 4th, 2018 by Helge
servage_lockUnfortunately it is a fact that security threats are a reality on the Internet! To address these and to make your hosting package even more secure we haveĀ  GeoIP Security added to each Servage account. This feature enables you to prohibit possible intruders to gain access to your account based on their geographic location or IP address. You can enable GeoIP Security in the control panel, where you also have the ability to specify specific countries and IPs to allow access. How does this work? Whenever someone tries to login the user is verified against our database to identify if that particular user is allowed to login from that particular geographic location ...

PHP Development Part 4 – Arrays

Wednesday, February 15th, 2012 by Servage
This part of the course is about Arrays. Arrays are a datatype in PHP that you can use to store data. You can look at an array like a chain. It can contain multiple elements, each element can contain multiple sub-elements. Imagine, the chain can divide in every link, becoming a new chain, with endless possibiliteis of where it can lead. Let's start with a simple example: $my_array = array(); $my_array[] = 'Element 0'; $my_array[] = 'Element 1'; $my_other_array('Element 0', 'Element 1'); The code above creates an array called $my_array, whereafter it appends to values to the array. You can also do the same thing in one-line, by adding the elemenets like done in the ...

PHP Development Part 2 – Functions

Wednesday, January 18th, 2012 by Servage
Hi again, please enjoy the second part of our PHP Development guide for beginners. This part is dedicated to functions. Functions are small pieces of code, that perform a calculation, check or anything you want. The reason why these pieces of code are made available as functions, is so you can re-use the same functionality again and again, without reprogramming the same thing over and over. Consider a simple example: You want to display the following text for each user logged in to your website: "You are from England", where England is a variable depending on the individual user. In that case, you could consider a function like this: function write_country($country_name) { return ...

Optimize your MySQL database usage

Friday, December 9th, 2011 by Servage
It's important for your website performance that you use the database carefully. Inefficient queries can place extreme load on the server, and make your website seem unresponsive or slow. In fact most database server related problems are caused by poorly created queries, that do things more complicated than necessary. Therefore I suggest you take a look at these tips for improvements: Carefully consider how to design your database. When using an MVC programming pattern, object models are usually a good starting point for the table structure of your database. Remember to use proper keys and indexing for performance. Have a look at this article for further tips. Only select what ...

Using SSL for your local development

Thursday, May 19th, 2011 by Servage
In this previous article I showed how you can use local domains (like aproject.local and beeproject.local) for development on your local host. Today I am going to show how you can use SSL for your local development as well. I.e. using https:// instead of http:// for encrypted connections to your local development projects. Every serious and trustworthy website uses SSL encryption to secure sensitive data from third parties. This might just as well be a part of the development process. First, you need to make sure that your webserver us ready to run with SSL. I have previously discussed two good options to get a local development ...

Setting up local domains for development

Tuesday, May 10th, 2011 by Servage
In this previous article I discussed some easy solutions to get started with local development for PHP and MYSQL applications. However, following the default installation instructions for the available server software, often just gives you a standard setup without local domains. For example a default Apache webserver shows the global webroot when accessing http://your-ip or http://localhost (or any domain pointing to your computer). This article will show you the basics of setting up your system to work with local domains, so you can work on multiple projects on your system in parallel. For this purpose, let's say you have two projects, called "Aproject" and "Beeproject". We want to access these ...

Getting started with Sencha Touch

Friday, April 29th, 2011 by Servage
Recently I described Sencha Touch, a mobile development framework which allows you to create rich web applications. It gives an almost-native experience on various mobile platforms like iOS and Android, while using open web standards such as HTML5, Css3 and JavaScript behind the scenes. Read the previous posts about Sencha Touch and converting into native apps for more information. Some users are having difficulties getting started developing, because basing most of the (or the entire) code on JavaScript is new to them. Most have some experience, for example with jQuery, integrating plugins or other JavaScript functionality into websites, but creating an entire MVC app in JavaScript seems ...

PHP encryption/decryption without 3rd party software

Wednesday, March 16th, 2011 by Servage
It's possible to encrypt and decrypt data with PHP using third party software, such as MCrypt. There are also some interesting PEAR packages for encryption. However, for many cases there's an even easier solution, which encrypts your data reasonably well and relies only on PHP: "A reversible password encryption routine for PHP" by Tony Marston. It's a simple PHP class that utilizes native PHP functions to achieve a fairly high level of encryption, which is secure enough for most PHP based applications. Despite the name, the class can be used for any kind of data, not only passwords. Recommended practice is to store all ...

Another way of defragmenting a Mac

Friday, November 19th, 2010 by Servage
Defragmentation of a Mac computer always triggers different opinions. In various other discussions online you can find very different opinions on the same question. However, it is a fact that your Mac gets slower over time. It's annoying, but it happens. It's nothing unusual. It happens to any other computer as well. Unfortunately it's not a black & white story with a simple solution. There are many reasons for computers getting slower over time, such as many apps running at the same time, hidden services running in the background, fragmentation of data, maybe even wear on mechanic components, such as hard drive. The official position from Apple is that defragmentation is ...