Adds initial PHP version of displayMessages.
Function open_reply not relevant in the PHP context