Human Readable Date Format List for PHP date Function

PHP offers a large variety of arguments that can be passed to the date() function. You are able to almost everything you want having just the current time stamp. I’ve selected the most useful readable formats – I think you might need it for any purpose. I used it to randomize a site’s content to vary posting dates.… Read More »

How to fix “Mailbox in Use” Error in DirectAdmin

Today I went back from my short trip to the country. First of all I decided to check my mail, and when I did it, I got the following error in my E-mail client: !25.07.2008, 19:20:39: FETCH -ERR [IN-USE] Mailbox in use. That’s not the first time when such an error happens and I already know the solution… Read More »

Free Software to Create Web Page Screenshots

Do you know Snap.com? If you don’t I’d encourage you to visit it as their tools make web much better. Even if I don’t like Ajax and Javascript tools, that often overload sites, I consider having site screenshots is a very good idea. But… where to take these shots and how to do them? If you try to… Read More »

Awstats and Directadmin – Now Supported Officially

Today I have updated my Directadmin installation and found that version 1.322 has appeared a few days ago. One of most intersting features I found was awstats support. I’ve been using awstats plugin for a while and now it is integrated in DirectAdmin. In order to add awstats support to your Directadmin installation you have to perform some… Read More »

How to Create a db4 Database from a Text File or Array

When you need to deal with big amounts of data, MySQL is not a good solution. db4 is much faster and easier – you don’t need any SQL queries to extract the necessary values and use them. The process of db4 file creation is quite easy; you need to have your PHP compiled with dba support. If you… Read More »

How to Block Outgoing Connections using iptables

Sometimes you should prevent outgoing connections from your server. The best way to do it is to use Linux system options, especially ipchains and iptables. I will show you how to do it using iptables, as this is the shortest way I know. In order to block outgoing connections from your server to one IP issue the following… Read More »

How to Change Owner of Files Created by Apache

If you manage any script that creates files on the server, you might meet the prob;em that you cannot edit files created by this script. This is especially related to PHP scripts, that, for example, create some text files in a folder. When you try to open these files via your FTP client, you will most probably receive… Read More »