upload homework OOP in PHP