fixed php endings