General php solutions