fixed '<?' to '<?php' to make it work; added assoc parameter