add rev_msg php script. I took several solutions, they were not worked properly