Easy registry script in php