add php-5.3+ support
Merge pull request #3 from kirillplatonov/feature/php-5.3+_support

add php-5.3+ support
replace mysql by mysqli (by KpuTuK)