PHP all about functions

PHP functions, a very simple way to prevent repetitive code and save you time. An example of a PHP function: function test($a, $b){ $var = $a + $b; return $var;…

PHP Switch vs if elseif

In PHP if & elseif is something i was always using when in fact a simple switch would have done the job and looked cleaner. Looking at the following Switch…

Ways to echo in PHP

PHP echo, one of the common used PHP operators. Echo is used to output a string. You can combine echo with strings and variables, Here are some examples: $age =…

PHP randomise a variable

If you want to randomise a PHP variable the following code is a great example: $vars = [‘Apple’, ‘Orange’, ‘Melon’, ‘Lemon’, ‘Lime’]; $random = $vars[mt_rand(0, count($vars) – 1)]; echo $random;…

PHP $_GET example

PHP GET sends data or a value through the URL, obviously not good or used for passwords but it is good to shape that URL’s page contents. Do note that…

KVM or OVZ? The differences

KVM and OVZ are types of virtulisation with servers. Server hosting companies have what is called dedicated servers, very powerfull machines. These dedicated servers are split up into VPS’s which…

What is SSL?

SSL stands for Secure Sockets Layer. It is a security measure for encrypting the link between the web server and the browser. Making the data passed through this link encrypted…