Wszystkie krajowe domeny w tablicy:
  1. <?php
  2.  
  3. $cctld_arr = array("ac" => "Ascension Island", 
  4. "ad" => "Andorra", 
  5. "ae" => "United Arab Emirates", 
  6. "af" => "Afghanistan", 
  7. "ag" => "Antigua and Barbuda", 
  8. "ai" => "Anguilla", 
  9. "al" => "Albania", 
  10. "am" => "Armenia", 
  11. "an" => "Netherlands Antilles", 
  12. "ao" => "Angola", 
  13. "aq" => "Antarctica", 
  14. "ar" => "Argentina", 
  15. "as" => "American Samoa", 
  16. "at" => "Austria", 
  17. "au" => "Australia", 
  18. "aw" => "Aruba", 
  19. "ax" => "Aland Islands", 
  20. "az" => "Azerbaijan", 
  21. "ba" => "Bosnia and Herzegovina", 
  22. "bb" => "Barbados", 
  23. "bd" => "Bangladesh", 
  24. "be" => "Belgium", 
  25. "bf" => "Burkina Faso", 
  26. "bg" => "Bulgaria", 
  27. "bh" => "Bahrain", 
  28. "bi" => "Burundi", 
  29. "bj" => "Benin", 
  30. "bm" => "Bermuda", 
  31. "bn" => "Brunei", 
  32. "bo" => "Bolivia", 
  33. "br" => "Brazil", 
  34. "bs" => "Bahamas", 
  35. "bt" => "Bhutan", 
  36. "bu" => "Burma", 
  37. "bv" => "Bouvet Island", 
  38. "bw" => "Botswana", 
  39. "by" => "Belarus", 
  40. "bz" => "Belize", 
  41. "ca" => "Canada", 
  42. "cc" => "Cocos (Keeling) Islands", 
  43. "cd" => "Democratic Republic of the Congo", 
  44. "cf" => "Central African Republic", 
  45. "cg" => "Republic of the Congo", 
  46. "ch" => "Switzerland", 
  47. "ci" => "Côte d'Ivoire", 
  48. "ck" => "Cook Islands", 
  49. "cl" => "Chile", 
  50. "cm" => "Cameroon", 
  51. "cn" => "People's Republic of China", 
  52. "co" => "Colombia", 
  53. "cr" => "Costa Rica", 
  54. "cs" => "Serbia and Montenegro", 
  55. "cu" => "Cuba", 
  56. "cv" => "Cape Verde", 
  57. "cx" => "Christmas Island", 
  58. "cy" => "Cyprus", 
  59. "cz" => "Czech Republic", 
  60. "de" => "Germany", 
  61. "dj" => "Djibouti", 
  62. "dk" => "Denmark", 
  63. "dm" => "Dominica", 
  64. "do" => "Dominican Republic", 
  65. "dz" => "Algeria", 
  66. "ec" => "Ecuador", 
  67. "ee" => "Estonia", 
  68. "eg" => "Egypt", 
  69. "eh" => "Western Sahara", 
  70. "er" => "Eritrea", 
  71. "es" => "Spain", 
  72. "et" => "Ethiopia", 
  73. "eu" => "European Union", 
  74. "fi" => "Finland", 
  75. "fj" => "Fiji", 
  76. "fk" => "Falkland Islands", 
  77. "fm" => "Federated States of Micronesia", 
  78. "fo" => "Faroe Islands", 
  79. "fr" => "France", 
  80. "ga" => "Gabon", 
  81. "gb" => "United Kingdom", 
  82. "gd" => "Grenada", 
  83. "ge" => "Georgia", 
  84. "gf" => "French Guiana", 
  85. "gg" => "Guernsey", 
  86. "gh" => "Ghana", 
  87. "gi" => "Gibraltar", 
  88. "gl" => "Greenland", 
  89. "gm" => "Gambia", 
  90. "gn" => "Guinea", 
  91. "gp" => "Guadeloupe", 
  92. "gq" => "Equatorial Guinea", 
  93. "gr" => "Greece", 
  94. "gs" => "South Georgia and the South Sandwich Islands", 
  95. "gt" => "Guatemala", 
  96. "gu" => "Guam", 
  97. "gw" => "Guinea-Bissau", 
  98. "gy" => "Guyana", 
  99. "hk" => "Hong Kong", 
  100. "hm" => "Heard Island and McDonald Islands", 
  101. "hn" => "Honduras", 
  102. "hr" => "Croatia", 
  103. "ht" => "Haiti", 
  104. "hu" => "Hungary", 
  105. "id" => "Indonesia", 
  106. "ie" => "Ireland", 
  107. "il" => "Israel", 
  108. "im" => "Isle of Man", 
  109. "in" => "India", 
  110. "io" => "British Indian Ocean Territory", 
  111. "iq" => "Iraq", 
  112. "ir" => "Iran", 
  113. "is" => "Iceland", 
  114. "it" => "Italy", 
  115. "je" => "Jersey", 
  116. "jm" => "Jamaica", 
  117. "jo" => "Jordan", 
  118. "jp" => "Japan", 
  119. "ke" => "Kenya", 
  120. "kg" => "Kyrgyzstan", 
  121. "kh" => "Cambodia", 
  122. "ki" => "Kiribati", 
  123. "km" => "Comoros", 
  124. "kn" => "Saint Kitts and Nevis", 
  125. "kp" => "North Korea", 
  126. "kr" => "South Korea", 
  127. "kw" => "Kuwait", 
  128. "ky" => "Cayman Islands", 
  129. "kz" => "Kazakhstan", 
  130. "la" => "Laos", 
  131. "lb" => "Lebanon", 
  132. "lc" => "Saint Lucia", 
  133. "li" => "Liechtenstein", 
  134. "lk" => "Sri Lanka", 
  135. "lr" => "Liberia", 
  136. "ls" => "Lesotho", 
  137. "lt" => "Lithuania", 
  138. "lu" => "Luxembourg", 
  139. "lv" => "Latvia", 
  140. "ly" => "Libya", 
  141. "ma" => "Morocco", 
  142. "mc" => "Monaco", 
  143. "md" => "Moldova", 
  144. "me" => "Montenegro", 
  145. "mg" => "Madagascar", 
  146. "mh" => "Marshall Islands", 
  147. "mk" => "Republic of Macedonia", 
  148. "ml" => "Mali", 
  149. "mm" => "Myanmar", 
  150. "mn" => "Mongolia", 
  151. "mo" => "Macau", 
  152. "mp" => "Northern Mariana Islands", 
  153. "mq" => "Martinique", 
  154. "mr" => "Mauritania", 
  155. "ms" => "Montserrat", 
  156. "mt" => "Malta", 
  157. "mu" => "Mauritius", 
  158. "mv" => "Maldives", 
  159. "mw" => "Malawi", 
  160. "mx" => "Mexico", 
  161. "my" => "Malaysia", 
  162. "mz" => "Mozambique", 
  163. "na" => "Namibia", 
  164. "nc" => "New Caledonia", 
  165. "ne" => "Niger", 
  166. "nf" => "Norfolk Island", 
  167. "ng" => "Nigeria", 
  168. "ni" => "Nicaragua", 
  169. "nl" => "Netherlands", 
  170. "no" => "Norway", 
  171. "np" => "Nepal", 
  172. "nr" => "Nauru", 
  173. "nu" => "Niue", 
  174. "nz" => "New Zealand", 
  175. "om" => "Oman", 
  176. "pa" => "Panama", 
  177. "pe" => "Peru", 
  178. "pf" => "French Polynesia", 
  179. "pg" => "Papua New Guinea", 
  180. "ph" => "Philippines", 
  181. "pk" => "Pakistan", 
  182. "pl" => "Poland", 
  183. "pm" => "Saint Pierre and Miquelon", 
  184. "pn" => "Pitcairn Islands", 
  185. "pr" => "Puerto Rico", 
  186. "ps" => "Palestinian territories", 
  187. "pt" => "Portugal", 
  188. "pw" => "Palau", 
  189. "py" => "Paraguay", 
  190. "qa" => "Qatar", 
  191. "re" => "Réunion", 
  192. "ro" => "Romania", 
  193. "ru" => "Russia", 
  194. "rw" => "Rwanda", 
  195. "sa" => "Saudi Arabia", 
  196. "sb" => "Solomon Islands", 
  197. "sc" => "Seychelles", 
  198. "sd" => "Sudan", 
  199. "se" => "Sweden", 
  200. "sg" => "Singapore", 
  201. "sh" => "Saint Helena", 
  202. "si" => "Slovenia", 
  203. "sj" => "Svalbard and Jan Mayen Islands", 
  204. "sk" => "Slovakia", 
  205. "sl" => "Sierra Leone", 
  206. "sm" => "San Marino", 
  207. "sn" => "Senegal", 
  208. "so" => "Somalia", 
  209. "sr" => "Suriname", 
  210. "st" => "Săo Tomé and Príncipe", 
  211. "su" => "Soviet Union", 
  212. "sv" => "El Salvador", 
  213. "sy" => "Syria", 
  214. "sz" => "Swaziland", 
  215. "tc" => "Turks and Caicos Islands", 
  216. "td" => "Chad", 
  217. "tf" => "French Southern Territories", 
  218. "tg" => "Togo", 
  219. "th" => "Thailand", 
  220. "tj" => "Tajikistan", 
  221. "tk" => "Tokelau", 
  222. "tl" => "East Timor", 
  223. "tm" => "Turkmenistan", 
  224. "tn" => "Tunisia", 
  225. "to" => "Tonga", 
  226. "tp" => "East Timor", 
  227. "tr" => "Turkey", 
  228. "tt" => "Trinidad and Tobago", 
  229. "tv" => "Tuvalu", 
  230. "tw" => "Republic of China (Taiwan)", 
  231. "tz" => "Tanzania", 
  232. "ua" => "Ukraine", 
  233. "ug" => "Uganda", 
  234. "uk" => "United Kingdom", 
  235. "um" => "United States Minor Outlying Islands", 
  236. "us" => "United States", 
  237. "uy" => "Uruguay", 
  238. "uz" => "Uzbekistan", 
  239. "va" => "Vatican City", 
  240. "vc" => "Saint Vincent and the Grenadines", 
  241. "ve" => "Venezuela", 
  242. "vg" => "British Virgin Islands", 
  243. "vi" => "United States Virgin Islands", 
  244. "vn" => "Vietnam", 
  245. "vu" => "Vanuatu", 
  246. "wf" => "Wallis and Futuna", 
  247. "ws" => "Samoa", 
  248. "ye" => "Yemen", 
  249. "yt" => "Mayotte", 
  250. "yu" => "Yugoslavia", 
  251. "za" => "South Africa", 
  252. "zm" => "Zambia", 
  253. "zw" => "Zimbabwe");
  254.  
  255. ?>


Gdyby ktoś potrzebował - ułatwiam robotę.
Nazwy państw po angielsku. Planuję przetłumaczyć - wtedy zrobię update.

Do moderów: Nie wiedziałem gdzie umieścić tą tablicę. Jeśli jest w dobrym dziale - proszę o usunięcie tej adnotacji; jeśli w złym - przesunięcie do odpowiedniego działu i również usunięcie adnotacji.