change to PHP5.2 and add php code