The initial message was:
Parse error: syntax error, unexpected ‘!’, expecting ‘,’ or ‘;’ in
/home/xxxxxxxx/public_html/blog/index.php on line 19
I changed the following:
(str.charAt(c)!=’!’)
to
(str.charAt(c)!=’;’)
This showed the next message, and I changed each file in a similar way.