finish most of c and php