<?php exec("cd .. && git pull 2<&1",$out); header('Content-type: application/json'); echo json_encode($out);