Getting class not found errors even though the require and include statements work fine?
It might be the case that the php configuration (php.ini) does not allow short opening tags.

short_open_tag = 0

A short opening tags in php looks like this <? instead of <?php
Some older libraries use these short opening tags. Best practice is to replace them by standard php opening tags.