Can I Apply For Visa While In The Philippines?

We are traveling to the Philippines for a 80 day stay. Is it possible to apply for a visa while in the Philippines or would we be refused entry without a Visa? Are there many places other than Manila if we can do this while visiting?