It is short for putang ina which in turn is short for puta ang ina mo. Its closest translation in English is "you son of a bitch!". It is originally a term used to curse someone but, like other filipino curses, it is now used for a variety of other situations such as surprise or amazement.