Monthly Archives: November 2011

How To Setup IP Address in Linux

In this guide, you will be shown how to setup the IP address of a computer running Linux. Before we know which way to configure your network card, you need to know if you want to use a static or dynamic IP address. Broadband made better. Superfast broadband, unlimited downloads and free award winning UK [...]

Quickest Way To Remove Empty Elements From A PHP Array

Here I will show you the quickest way to remove empty values from an array. The first way is slow but the most logical way of approaching this. Luckily the second example is the quickest and also pretty simple way. Use the second way, trust me, you will love it. The slow but simple way [...]

Set Apache Log Permission Using Logrotate

If you have ever wondered why your log files randomly change permissions each night. Logrotate could be up to its tricks. Similar to the other article I published on Why is apache randomly restarting which explains why logrotate could be causing apache to restart randomly. Each time logrotate runs its course, it will compress, rename and [...]

Why is Apache Restarting Randomly

Logrotate could be the cause of the issue. Each time logrotate runs, it will compress, rename and rotate your logs as well as removing older logs. Similar to the follow up of this article explaining how logrotate was changing apache log file permissions. Since the logs files are renamed, it will result in some of your [...]

Output Ajax JSON Header in PHP

Overview of JSON JSON is an acronym for JavaScript Object Notation. It is essentially a way of exchanging data between a source and destination using name/value pairs. Commonly used when transferring data from a database to a website using AJAX. Generating a JSON object using php is pretty simple (although it won’t be covered [...]