Il php si apre con <?php. Il codice abbreviato <? non è standard e deve essere abilitato esplicitamente, forse il tuo hosting non lo ha fatto.