Cannot speak for the post above, but yes, you can work on a different country and still pay taxes on your origin country. Doesn't work for any country or any circumstance though.
Typical case is when you work for a multi-national company and they send you to work in a different country for less than 183 days, you will keep paying taxes in your own country despite your legal employer is now the legal entity in the new country.