PHP files syntax errors fix

Fixed major syntax errors.