intanto dovresti mettere il tag esteso <?php e non il solo <?

questo pero' nulla toglie a non aprire localhost. Sicuro che il server apache sia avviato?