Servage Magazine

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

Articles Tagged ‘guide’

Create a cool CSS-based tab-menu

Tuesday, April 10th, 2018 by Servage
We received a lot of great feedback for our CSS-based dropdown menu, so I thought it would be time for another little tutorial. This time showing how to create a nice-looking tab-menu, based purely on HTML and CSS. See a live tabmenu example here. First, we want to have the menu code created in HTML. I find that the most appropriate way of doing this, is by creating the menu as a list. Thereby non-supporting browsers will still show the menu as a list, which somewhat resembles a menu. Everyone else will see the cool tab-menu :-) <ul class="tabmenu"> <li><a href="">Overview</a></li> <li class="active"><a href="">About</a></li> <li><a href="">Products</a></li> ...

Validation of EU VAT numbers

Tuesday, March 20th, 2018 by Servage
eu_flagCompanies that reside in the EU are obligated to check the validity of business customers' VAT numbers before engaging in intra-community tax-exempt transactions. For example if you are a British company providing an online service to a German company, you would need to validate the German company's VAT number in order to legally skip the VAT on the invoicing. Obvisouly it would make sense to du this programatically during your order process, which is why the European VAT Number Validation API is ideal. The API allows you to validate any given EU VAT number directly from your code by using the following GET request URL - for example in PHP ...

Servage Web Development Course Part 6: Protect your files and folders with htaccess

Wednesday, March 14th, 2018 by Servage
Hey there! Part five is now a few weeks old, and it's about time for the next step! Today the topic is simple file/folder protection with the help of htaccess (don't worry if you have no clue what that means). When you develop on a new project it's nice to be able to keep the public out, while working on it. And I am sure you can also come up with a whole lot of different reasons why you would want to protect certain files. What is htaccess protection? Htaccess files (hypertext access files) allow you to alter the configuration of the web-server to an extend permitted by the server administrator (which ...

Servage Web Development Course Part 4: Tables

Friday, March 2nd, 2018 by Servage
blogimageToday we will take a look at tables. Tables are in general comparable with tables in for example Word or Excel, and should be used the same way in HTML. That basically means that tables are a way to represent tabular data. They are not meant to be abused for other purposes, such as for example layouts. It has been "normal" for many years to use tables for page structure, which has distorted the use of tables. The correct way of doing layout is by use of div containers and CSS positioning (like described in a previous part of this course). Tables are for data. The table HTML structure The <table> tag has three sub-elements, which could ...

Servage Web Development Course Part 3: Layout and page structure

Friday, February 23rd, 2018 by Servage
blogimageEvery website looks a little different, but somehow they all still contain similar elements. Like a menu, a content area, a top banner (called header) and a bottom (called footer). These can be arranged and displayed in varuous ways, but mostly they are all there - somehow. In HTML there is the <div> tag which is suited to define and seperate such areas from each other. Combined with CSS styling, these <div> containers, as they are often called, can even be positioned to match the layout you want on your website. So let's have a look at a sample <div> container structure (part3a.html of the project files): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ...

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 ...