Servage Magazine

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

Archive for May, 2017

Web application uptime monitoring

Saturday, May 27th, 2017 by Servage
uptimeHigh availability and uptime have become very important for websites and applications. Solving downtime issues should be taken care of quickly to avoid losing any visitors or profit when it comes to business websites. Fortunately, there are services that monitor websites, databases and servers around the clock and inform website administrators within minutes when something is not working as expected. Pingdom Although being a pricy service, Pingdom is one of the most popular uptime monitoring services. The time it takes for Pingdom to detect that your website is down is very short, and their downtime reports are accurate. Pingdom has been said to sometimes report false positives for  downtime, but nowadays it’s possible ...

Tracking bugs and errors in web applications

Sunday, May 21st, 2017 by Servage
bug-errorsBug tracking just got easier! What could be worse than losing a customer or a regular visitor due to some unknown error that a website can’t handle? On some websites, customers can provide feedback and tell what happened if they land on an error page. Many visitors don’t spend the time to fill out such forms so developers never get to know what really happened. This time we will look into ways that automatically report errors and collect information related to the issue when something unexpected happens. Introducing Sentry Sentry is an error tracking service that sends errors from your application to their service where you can view and inspect them using their ...

Top Git Clients for Developers

Tuesday, May 16th, 2017 by Servage
gitUsing a version control system (VCS) is one of the most valuable tools for a developer. If you code every day, you likely use Git or some other VCS daily too, or at least you should. Because Git is a big part of a developer’s daily workflow, it is good to choose your Git client wisely. So, let’s find out what are the pros and cons of some popular Git clients to find out the best one for you. SourceTree SourceTree is one of the most popular Git clients out there. It has a good graph tree feature to track what’s happening inside a project and all of its branches. SourceTree supports all ...

Protecting users with Two-Factor Authentication

Thursday, May 11th, 2017 by Servage
two-factorTwo-factor authentication (2FA) is considered the most secure way to protect online accounts. It protects user accounts with one-time codes that are usually delivered to the user with a 2FA application or text message. Big companies, such as Google, Facebook and Microsoft, already support 2FA, and it continues to gain more support on smaller websites too. This time we will see what it takes to implement two-factor authentication on a website using PHP. Installing pragmarx/googlef2a To set up two-factor authentication, we will be using a popular Composer package called pragmarx/google2fa. To get started, install the package using Composer: “composer require pragmarx/google2fa”. This requires you to have composer installed globally as described on www.getcomposer.org. Updating ...

PayPal integration with PHP

Sunday, May 7th, 2017 by Servage
paypalAccepting payments is quite common on business websites. There are many payment processors to choose from, but PayPal has been the leading payment processor for a long time. Implementing a shopping cart or checkout system on a website is not a simple task, but with these instructions you should be able to integrate a simple single-item checkout process with your own website. Making a Payment Button First, we have to make a payment button that a customer can click to pay their order. PayPal offers multiple buttons for adding a product to a shopping cart, creating a subscription payment, and so on. For buying a single item, the buy now button is the ...

Common design-patterns explained

Tuesday, May 2nd, 2017 by Servage
design-patternsDesign patterns are used in software design to overcome common problems. For instance, what if you need a class that handles all database connections and you want to be able to create only one instance of that class? This is where design patterns are handy. They help you solve common design problems with universal solutions that you can also find in other applications. Singleton Pattern Let’s start with a simple pattern. Singleton is a design pattern whose purpose is to keep only one instance of a class. This way, there is no need to instantiate a new object every time you call a method. A singleton class can be created by making the constructor ...