I'm looking for a decent php script/snippet that can display a flag by the users' country with PHP. Surprisingly, there doesn't seem to be a decent/accessible solution for this.
Here's the idea:
Firstly, the flag images should condensed into a single sprite
The script would then zero in on the coordinates of the sprite based on the country code.
Any ideas?
You can try the sprite over here : Flag sprite