PHP Terminal Helper