Fixing issues: removing php short tags and explicitly calling print