I do not have residency in any of these countries, but I was looking at "AYLA Aviation" based in Jordan, they do look like a really good Training Organisation, who study the JAA courses. I think they issue some sort of certificate for overseas students in which can account for residency.
So I would have thought that other FTO's would do something similar to that! Maybe im wrong! :S