adding end tag to php script