How did you test phpinfo() ? does your script to test it look like
<?php
phpinfo();
?>
if you can see the table that phpinfo() produces what does the PHP Core menu (the first one) say for short_open_tag? If it says off then PHP will not recognize the short open tag and you must use <?php echo $myvar;?> instead of the short tag version, also is the file named something.html or something.php?