At Manila airport is easy, go to the immigration queue, when you get to the front, tell them you want to extend, they tell you to go to the door on your left, and in there you ask for your visa, it takes about 20 minutes. Done, then go back to the immigration queue, and you're in.