fixed php syntax bugs.