Name it test.php not .html
Also call it via your webserver NOT just by double clicking it. EG: http://localhost/test.php
My helpful sig has gone because a mod below the administrator gave me an infraction - despite the administrator personally agreeing to it.
If you need any php tips or tricks you can PM me.