Simple LDAP Class for PHP

In this post, i’m gonna explain how to connect to a LDAP server via using PHP. First i wanna talk about some definitions; LDAP means Lightweight Directory Access Protocol. As you can understand from it’s name, it is a database which uses directory-tree based structure. It’s used by OpenLDAP, Sun Directory Server, Microsoft Active Directory […]

Read More

CSS3 Borders – What’s New ?

Hi there, it’s me again. Today, i’m gonna talk about CSS3 border features. By using CSS3, you can; create rounded borders (it was really a big problem cause we had to use images or junk javascript libraries) box shadows (it was also a big problem) use image files as border without using a design program […]

Read More

How to change storage engine to InnoDB in MySQL ?

You’ve designed a database with MyISAM and suddenly realized that you need ACID (atomicity, consistency, isolation, durability) compliant features and transactions. Right, you should use InnoDB. But how to change storage engine for your previous tables ? As far as i know, changing the storage engine for tables is easy by alter command. But there’s one flaw. You should […]

Read More

How to clear contents of a file ?

If you want to clear contents of a file in unix, you could just delete the file and recreate it. But there are much more simple alternatives. You can use echo method. To empty a file just enter the command below. I use my php_error.log file for example. echo -n > /home/base/logs/php_error.log That’s it. Your […]

Read More

Why should I use a MVC Framework ?

You wanna create a web based application, you have ideas but you have no idea about where to start. That is exactly where you should start using a MVC Framework. So what is a MVC Framework ? MVC is a programming pattern that comes with 3 components. M -> Model V -> View C -> […]

Read More