Free Base64 Encoder and Decoder Available Online

base64 encoding is often used to protect PHP code. There is an online tool that allows you to encode and decode the code. Here is the link: Base64 Encoding/Decoding Tool by Thomas Horsten. It really works with the code you have. It’s a common kind of PHP protection and this tool reveals the opinion that base64 encoding is… Read More »

How to Install g++ on CentOS 4 and CentOS 5

g++ is often necessary for building various packages. But It’s quite hard to install it in CentOS if you don’t know a simple thing: yum install g++ will not work here. yum install compat-g++and yum install gcc-g++ won’t give any result too.  The only command for yum to install g++ on CentOS is the following: yum install gcc-c++… Read More »

How to Set Up Key Authentification in Putty without user password

Yesterday I’ve purchased my first communicator. Certainly, I need it to have SSH access to my servers. As my passwords are not so simple, I’ve decided to read about key authentification in order to prevent entering long user passwords without the loss of security. I’ve found two good articles and I won’t copy their content to my site:… Read More »

How to Unzip an Uploaded File with PHP

We’re often dealing with file uploads. Sometimes we need to compress the data that is uploaded to the server. Today I will tell you about simple methods that allow to extract the uploaded ZIP file with a PHP script. let’s say we need to install WordPress. In order to save our time (as you know, it is faster… Read More »

How to Get a File into Array With PHP Without Errors

Most of PHP programmers need to work with files. Simple file operations are used day by day and often files contain necessary data we need to deal with. Anything that could be stored in a list where values are delimited with new lines is what we often use. Let’s take a simple example. We have a file that… Read More »

Exim Problem: unable to set gid or uid (euid=8): domain_filter router

Today I’ve noticed a strange thing after Directadmin software update. Exim stopped processing e-mails, the thing that is really necessary for any server. I’ve started to look through log files to identify the problem. Here is what I have at the moment. My mainlog (/var/log/exim/mainlog) is full of messages like this: 2008-10-30 19:27:02 exim 4.67 daemon started: pid=16453,… Read More »

How to Truncate a File to Zero Length in Linux

Sometimes you need to truncate a file to zero bytes. For example you have a big file that contains various logs and its size is too big to open it easily. Of course, you can revome this file and touch it again. But this way you’ll have to deal with permissions and file ownership. There is a simple… Read More »

How to Check Whether a Package is Installed in Linux

Today I come with a short and simple command that will be useful for Linux newbies. What to do if you need to find out whether the package you need is already installed or not? There is a short command that will allow you to do this. rpm -qa | grep <package> What does this do? This command… Read More »