PHP ancient (non OOP) ver. 5.2