{"id":55752,"date":"2020-01-28T00:00:00","date_gmt":"2020-01-27T21:00:00","guid":{"rendered":"https:\/\/prohoster.info\/blog\/blog_prohoster\/rabota-s-ipv6-v-php"},"modified":"2020-02-18T14:03:54","modified_gmt":"2020-02-18T11:03:54","slug":"rabota-s-ipv6-v-php","status":"publish","type":"post","link":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/rabota-s-ipv6-v-php","title":{"rendered":"Arbeiten mit IPv6 in PHP","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 LIR \u0438 \/29 \u0431\u043b\u043e\u043a IPv6. \u0410 \u0441\u043b\u0435\u0434\u043e\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u0435\u0441\u0442\u0438 \u0443\u0447\u0451\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439. \u0418 \u043a\u043e\u043b\u044c \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0448 \u0431\u0438\u043b\u043b\u0438\u043d\u0433 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 PHP, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0438 \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u044f\u0437\u044b\u043a \u2014 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u043d\u044b\u0439 \u0432 \u043f\u043b\u0430\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 IPv6. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u043d\u0430\u0448\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u0438 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430\u043c\u0438. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435 \u0441\u0430\u043c\u043e\u0435 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0435, \u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442.<\/p>\n<p><img decoding=\"async\" alt=\"\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 IPv6 \u0432 PHP\" src=\"\/wp-content\/uploads\/2020\/01\/91633d582e282aeeae2d43c9967d8962.jpeg\" style=\"display:block;margin: 0 auto;\" \/><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h3>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043e\u0440\u0438\u0438<\/h3>\n<p><\/p>\n<blockquote><p><b>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440.<\/b> \u0415\u0441\u043b\u0438 \u0412\u044b \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 IPv6 \u0438 \u0441 \u0447\u0435\u043c \u0435\u0433\u043e \u0435\u0434\u044f\u0442, \u044d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043b\u044f \u0412\u0430\u0441 \u0441\u043a\u0443\u0447\u043d\u043e\u0439. \u041c\u043e\u0436\u0435\u0442 \u0438 \u043d\u0435 \u0431\u044b\u0442\u044c.<\/p><\/blockquote>\n<p>\n\u041b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0432\u0438\u0434\u044f\u0442 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044e IPv6, \u043e\u043d\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0435\u0441\u043a\u0443\u0440\u0430\u0436\u0438\u0442\u044c. \u041f\u043e\u0441\u043b\u0435 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u044b\u0445 <i>64.233.177.101<\/i> \u043c\u044b \u0432\u0434\u0440\u0443\u0433 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0441 <i>2607:f8b0:4002:c08::8b<\/i> \u0438 \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u0442\u0435\u0440\u044f\u0442\u044c\u0441\u044f. \u0418 \u0442\u043e, \u0438 \u0434\u0440\u0443\u0433\u043e\u0435 \u2014 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 32 \u0438 128 \u0431\u0438\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041b\u044e\u0431\u043e\u0439 IP \u043f\u0430\u043a\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u043e \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0431\u0438\u0442\u0430. \u041d\u0435 \u0432\u0434\u0430\u0432\u0430\u044f\u0441\u044c \u0435\u0449\u0451 \u0433\u043b\u0443\u0431\u0436\u0435 \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432, \u043d\u0430\u043c \u043e\u0442\u0441\u044e\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u043e\u0434\u043d\u043e: \u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 IP-\u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u0438 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430\u043c\u0438 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u043d\u0443\u044e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0443 \u0438 \u043f\u043e\u0431\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438. \u0425\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0431\u0430\u0437\u0435 \u0438\u0445 \u0442\u043e\u0436\u0435 \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043a\u0430\u043a <i>BINARY(4)<\/i> \u0434\u043b\u044f IPv4 \u0438 <i>BINARY(16)<\/i> \u0434\u043b\u044f IPv6.<\/p>\n<p>\u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u0432\u0430\u0436\u043d\u044b\u0439 \u0430\u0441\u043f\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u043e\u0438\u043b\u043e \u0431\u044b \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u044c, \u2014 \u044d\u0442\u043e \u043c\u0430\u0441\u043a\u0438 \u0441\u0435\u0442\u0438 \u0438 CIDR \u043d\u043e\u0442\u0430\u0446\u0438\u044f. CIDR \u2014 \u0430\u043a\u0440\u043e\u043d\u0438\u043c \u043e\u0442 Classless Inter-Domain Routing (<noindex><a rel=\"nofollow\" href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%91%D0%B5%D1%81%D0%BA%D0%BB%D0%B0%D1%81%D1%81%D0%BE%D0%B2%D0%B0%D1%8F_%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0%D1%86%D0%B8%D1%8F\">\u0431\u0435\u0441\u043a\u043b\u0430\u0441\u0441\u043e\u0432\u0430\u044f \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044f<\/a><\/noindex>). \u042d\u0442\u0430 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u043f\u0440\u0438\u0448\u043b\u0430 \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 \u043a\u043b\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u0432 \u0432\u043e\u043f\u0440\u043e\u0441\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u043a\u0430\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c \u0441\u0435\u0442\u0438, \u0430 \u043a\u0430\u043a\u0430\u044f \u2014 \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0439 \u0441\u0435\u0442\u0438. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043f\u0435\u0440\u0432\u044b\u043c n \u0431\u0438\u0442, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0443, \u0431\u0443\u0434\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 1, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u2014 0. <\/p>\n<p>\u0412 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u044d\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 <i>ip.add.re.ss\/cidr<\/i>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <i>64.233.177.0\/24<\/i> \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0435 24 \u0431\u0438\u0442\u0430 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0443. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 8 \u0431\u0438\u0442, \u043e\u043d\u0438 \u0436\u0435 \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438, \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u0430\u0434\u0440\u0435\u0441\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u043e\u0434\u0441\u0435\u0442\u0438. \u0415\u0449\u0451 \u043f\u0430\u0440\u0443 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u0439. <i>64.233.177.101\/32<\/i> \u0438 <i>2607:f8b0:4002:c08::8b\/128<\/i> \u2014 \u043e\u0434\u0438\u043d \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441. <i>2607:f8b0:4002:c08::\/64<\/i> \u2014 \u043f\u0435\u0440\u0432\u044b\u0435 64 \u0431\u0438\u0442\u0430 (\u043f\u0435\u0440\u0432\u044b\u0435 4 \u0433\u0440\u0443\u043f\u043f\u044b) \u2014 \u043f\u0440\u0435\u0444\u0438\u043a\u0441, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 64 \u0431\u0438\u0442\u0430 \u2014 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c. \u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \u043a\u043e\u0433\u043e \u0441\u043c\u0443\u0449\u0430\u0435\u0442 &quot;::&quot; \u0432 \u0437\u0430\u043f\u0438\u0441\u0438, \u0434\u0432\u043e\u0439\u043d\u043e\u0435 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0446\u0438\u0439, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 0. \u041e\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0442\u043e\u043b\u044c\u043a\u043e 1 \u0440\u0430\u0437. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, <i>2607:f8b0:4002:c08::8b = 2607:f8b0:4002:c08:0:0:0:8b<\/i>.<\/p>\n<p>\u0427\u0442\u043e \u043d\u0430\u043c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0447\u0435\u0440\u043f\u043d\u0443\u0442\u044c? \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043f\u0435\u0440\u0432\u044b\u0439 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0430\u0434\u0440\u0435\u0441 \u043f\u043e\u0434\u0441\u0435\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 AND \u0438 OR, \u0437\u043d\u0430\u044f \u043c\u0430\u0441\u043a\u0443 \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u043c \u0432\u0438\u0434\u0435. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (\u0442.\u0435. \u0441 CIDR) <b>n<\/b> \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c, \u043f\u0440\u0438\u0431\u0430\u0432\u0438\u0432 1 \u043a <b>n<\/b>-\u0442\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438. \u041f\u043e\u0434 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c \u0432\u0438\u0434\u043e\u043c \u044f \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u044e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 <i>pack()<\/i> \u0438 <i>inet_pton()<\/i> \u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <noindex><a rel=\"nofollow\" href=\"https:\/\/www.php.net\/manual\/ru\/language.operators.bitwise.php\">\u043f\u043e\u0431\u0438\u0442\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432<\/a><\/noindex>, \u043f\u043e\u0434 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u043c \u2014 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c, \u0441\u043a\u0430\u0436\u0435\u043c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <i>base_convert()<\/i>.<\/p>\n<p><b class=\"spoiler_title\">\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0430<\/b>\u0411\u0435\u0441\u043a\u043b\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u043a\u043b\u0430\u0441\u0441\u043e\u0432\u0430\u044f \u0441\u0435\u0433\u0440\u0435\u0433\u0430\u0446\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044f. \u0412 \u0442\u0435 \u0434\u0430\u043b\u0451\u043a\u0438\u0435 \u0433\u043e\u0434\u044b \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b, \u0447\u0442\u043e \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e, \u0440\u0430\u0437\u0434\u0430\u0432\u0430\u043b\u0438 \u0438\u0445 \u043d\u0430\u043f\u0440\u0430\u0432\u043e \u0438 \u043d\u0430\u043b\u0435\u0432\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438: \u043a\u043b\u0430\u0441\u0441 \u0410 \u2014 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c \u0431\u044b\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0435 8 \u0431\u0438\u0442 (\u0442.\u0435. \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e), \u0441 \u043b\u0438\u0434\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0431\u0438\u0442\u043e\u043c 0; \u043a\u043b\u0430\u0441\u0441 \u0412 \u2014 \u043f\u0435\u0440\u0432\u044b\u0435 16 (\u043f\u0435\u0440\u0432\u044b\u0435 \u0434\u0432\u0430 \u0447\u0438\u0441\u043b\u0430), \u043b\u0438\u0434\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0431\u0438\u0442\u044b 10; \u043a\u043b\u0430\u0441\u0441 \u0421 \u2014 \u043f\u0435\u0440\u0432\u044b\u0435 24 \u0431\u0438\u0442\u0430, \u043b\u0438\u0434\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0431\u0438\u0442\u044b 110. \u042d\u0442\u0438 \u0441\u0430\u043c\u044b\u0435 \u043b\u0438\u0434\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0431\u0438\u0442\u044b \u0437\u0430\u0434\u0430\u0432\u0430\u043b\u0438 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0430\u0434\u0440\u0435\u0441 \u0442\u043e\u0433\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430: <i>0.0.0.0 \u2014 127.255.255.255<\/i> \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0430 \u0410, <i>128.0.0.0 \u2014 191.255.255.255<\/i> \u2014 \u043a\u043b\u0430\u0441\u0441 \u0412, 192.0.0.0 \u2014 223.255.255.255 \u2014 \u043a\u043b\u0430\u0441\u0441 \u0421. \u041f\u043e \u043c\u0435\u0440\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u0437\u0430\u043b\u0441\u044f \u043f\u043e \u043f\u043b\u0430\u043d\u0435\u0442\u0435, \u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u044b \u043f\u043e\u043d\u044f\u043b\u0438, \u0447\u0442\u043e \u043f\u0440\u043e\u043c\u0430\u0445\u043d\u0443\u043b\u0438\u0441\u044c, \u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 90-\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0431\u0435\u0441\u043a\u043b\u0430\u0441\u0441\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e, \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0432\u0448\u0443\u044e \u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043a \u043b\u0438\u0434\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0431\u0438\u0442\u0430\u043c. \u0427\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0435\u0440\u043f\u043d\u0443\u0442\u044c, \u0441\u043a\u0430\u0436\u0435\u043c, \u0432 <noindex><a rel=\"nofollow\" href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9A%D0%BB%D0%B0%D1%81%D1%81%D0%BE%D0%B2%D0%B0%D1%8F_%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0%D1%86%D0%B8%D1%8F\">\u0432\u0435\u043b\u0438\u043a\u043e\u0439 \u0438 \u0432\u0441\u0435\u0437\u043d\u0430\u044e\u0449\u0435\u0439<\/a><\/noindex>.<\/p>\n<h3>\u041f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/h3>\n<p>\n\u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0442\u0440\u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u0435, \u043a\u0430\u043a \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0437\u0430\u0434\u0430\u0447\u0438:<\/p>\n<ol>\n<li>\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430;<\/li>\n<li>\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (CIDR);<\/li>\n<li>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443.<\/li>\n<\/ol>\n<p>\n\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0434\u043b\u044f IPv6, \u043d\u043e \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043b\u043e\u0433\u0438\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0434\u0435\u0438 \u044f \u043f\u043e\u0447\u0435\u0440\u043f\u043d\u0443\u043b <noindex><a rel=\"nofollow\" href=\"https:\/\/intsystem.org\/coding\/kak-rabotat-s-ipv6-v-php\/\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a><\/noindex>, \u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0430\u0447\u0435. \u0422\u0430\u043a\u0436\u0435 \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043d\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u0432\u043e\u0434\u0430. \u0418\u0442\u0430\u043a, \u043f\u043e\u0435\u0445\u0430\u043b\u0438.<\/p>\n<p>\u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b, \u043f\u0435\u0440\u0432\u044b\u0439 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0430\u0434\u0440\u0435\u0441 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043e\u0431\u0438\u0442\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u0437\u043d\u0430\u044f \u043d\u0430\u0447\u0430\u043b\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u0443\u044e \u043c\u0430\u0441\u043a\u0443 \u043f\u043e\u0434\u0441\u0435\u0442\u0438. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c CIDR \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0443\u044e \u043c\u0430\u0441\u043a\u0443. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0431\u0435\u0440\u0451\u043c \u0435\u0451 hex \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0437\u0430\u043f\u0430\u043a\u0443\u0435\u043c \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435.<\/p>\n<pre><code class=\"php\">function cidrToMask ($cidr) {\n    $mask = str_repeat('f', ceil($cidr \/ 4));\n    $mask .= dechex(4 * ($cidr % 4));\n    $mask = str_pad($mask, 32, '0');\n    return pack('H*', $mask);\n}<\/code><\/pre>\n<p>\n\u0412\u044b\u0437\u043e\u0432 <i>pack(&#8216;H*&#8217;, $mask)<\/i> \u043f\u0430\u043a\u0443\u0435\u0442 hex \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043a\u0430\u043a \u0438 <i>inet_pton()<\/i>. \u0421 \u0442\u043e\u0439 \u043b\u0438\u0448\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0435\u0439, \u0447\u0442\u043e \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 <i>pack()<\/i> \u0432\u0441\u0435 0 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445, \u0430 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0439 \u0432 \u0437\u0430\u043f\u0438\u0441\u0438 \u0431\u044b\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438. <\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u2014 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0447\u0430\u043b\u0430 \u0438 \u043a\u043e\u043d\u0446\u0430 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430. \u0418 \u0432\u043e\u0442 \u0442\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442 \u043d\u044e\u0430\u043d\u0441\u044b. \u041f\u043e\u0431\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0430 \u043c\u043e\u0451\u043c 32-\u0431\u0438\u0442\u043d\u043e\u043c CubieTruck, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043f\u043e\u0440\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0434\u043b\u044f \u0432\u0441\u044f\u043a\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0431\u0430\u043b\u043e\u0432\u0441\u0442\u0432\u0430, \u0432\u0441\u0435 128 \u0431\u0438\u0442 \u0430\u0434\u0440\u0435\u0441\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0437\u0430 \u043e\u0434\u043d\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u043d\u0435 \u0432\u044b\u0439\u0434\u0435\u0442. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u043d\u0438\u0447\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043d\u0430\u043c \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0433\u0440\u0443\u043f\u043f\u044b \u043f\u043e 32 \u0431\u0438\u0442\u0430 (\u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u0442\u043e \u0437\u043d\u0430\u0435\u0442, \u043d\u0430 \u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445 \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f).<\/p>\n<pre><code class=\"php\">function getRangeBoundary ($ip, $cidr, $which, $ipIsBin = false, $returnBin = false) {\n    $mask = cidrToMask($cidr);\n    if (!$ipIsBin) {\n        $ip = inet_pton($ip);\n    }\n    $ipParts   = str_split($ip, 4);\n    $maskParts = str_split($mask, 4);\n    $rangeParts  = [];\n    for ($i = 0; $i &lt; count($ipParts); $i++) {\n        if ($which == 'start') {\n            \/* \u041f\u043e\u0431\u0438\u0442\u043e\u0432\u044b\u0439 &amp; \u0430\u0434\u0440\u0435\u0441\u0430 \u0438 \u043c\u0430\u0441\u043a\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0438\u0442\u044b \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430. *\/\n            $rangeParts[$i] = $ipParts[$i] &amp; $maskParts[$i];\n        } else {\n            \/* \u041f\u043e\u0431\u0438\u0442\u043e\u0432\u044b\u0439 | \u0441 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u043c\u0430\u0441\u043a\u043e\u0439 (~) \u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0431\u0438\u0442\u044b \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0432\u0441\u0435 \u0431\u0438\u0442\u044b \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432 1. *\/\n            $rangeParts[$i] = $ipParts[$i] | ~$maskParts[$i];\n        }\n    }\n    $rangeBoundary = implode($rangeParts);\n    if ($returnBin) {\n        return $rangeBoundary;\n    } else {\n        return inet_ntop($rangeBoundary);\n    }\n}<\/code><\/pre>\n<p>\n\u0414\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c IP \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043a\u0430\u043a \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u043c, \u0442\u0430\u043a \u0438 \u0432 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u043e\u043c \u0432\u0438\u0434\u0435. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <i>$which<\/i> \u0442\u0443\u0442 \u0437\u0430\u0434\u0430\u0451\u0442, \u0445\u043e\u0442\u0438\u043c \u043b\u0438 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430\u0447\u0430\u043b\u043e \u0438\u043b\u0438 \u043a\u043e\u043d\u0435\u0446 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 (\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <i>&#8216;start&#8217;<\/i> \u0438\u043b\u0438 <i>&#8216;end&#8217;<\/i> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e).<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 (\u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u0430\u044f \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438) \u2014 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430. \u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e \u0432 \u0433\u043e\u043b\u043e\u0432\u0443, \u043a\u0440\u043e\u043c\u0435 \u043a\u0430\u043a \u0440\u0430\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c 1 \u0432 \u043d\u0443\u0436\u043d\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0451 \u043d\u0430\u0437\u0430\u0434. \u0427\u0442\u043e\u0431\u044b \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432, \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u0438 \u0440\u0430\u0437\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0434\u0440\u043e\u0431\u0438\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u043f\u043e \u0431\u0430\u0439\u0442\u0443.<\/p>\n<pre><code class=\"php\">function getNextBlock ($ipStart, $cidr, $ipIsBin = false, $returnBin = false) {\n    if (!$ipIsBin) {\n        $ipStart = inet_pton($ipStart);\n    }\n    $ipParts = str_split($ipStart, 1);\n    $ipBin   = '';\n    foreach ($ipParts as $ipPart) {\n        $ipBin .= str_pad(base_convert(unpack('H*', $ipPart)[1], 16, 2), 8, '0', STR_PAD_LEFT);\n    }\n    \/* \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c 1 \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u0440\u0430\u0437\u0440\u044f\u0434\u0435 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a\u0438 &quot;\u0432\u043b\u043e\u0431&quot; :) *\/\n    $i = $cidr - 1;\n    while ($i &gt;= 0) {\n        if ($ipBin[$i] == '0') {\n            $ipBin[$i] = '1';\n            break;\n        } else {\n            $ipBin[$i] = '0';\n        }\n        $i--;\n    }\n    $ipBinParts = str_split($ipBin, 8);\n    foreach ($ipBinParts as $key =&gt; $ipBinPart) {\n        $ipParts[$key] = pack('H*', str_pad(base_convert($ipBinPart, 2, 16), 2, '0', STR_PAD_LEFT));\n    }\n    $nextIp = implode($ipParts);\n    if ($returnBin) {\n        return $nextIp;\n    } else {\n        return inet_ntop($nextIp);\n    }\n}<\/code><\/pre>\n<p>\n\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432 <i>$cidr<\/i>. \u042d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u043c\u044b \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u0431\u043b\u043e\u043a\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u043d\u0430\u0448\u0438\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c.<\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043b\u0438 \u0430\u0434\u0440\u0435\u0441 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043c\u044b \u0432\u044b\u0434\u0435\u043b\u0438\u043b\u0438 \u043e\u0434\u0438\u043d \u0431\u043b\u043e\u043a \/48 \u043f\u043e\u0434 \u0440\u0430\u0437\u0434\u0430\u0447\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u0431\u043b\u043e\u043a\u043e\u0432 \/64, \u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 \u043c\u044b \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 (\u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u0440\u043e, \u043d\u043e \u0432\u0441\u0451 \u0436\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0435\u0441\u0442\u044c). \u0422\u0443\u0442 \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u043e \u0438 \u043a\u043e\u043d\u0435\u0446 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043b\u0438 \u0430\u0434\u0440\u0435\u0441 \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445.<\/p>\n<pre><code class=\"php\">function ipInRange ($ip, $rangeStart, $cidr) {\n    $start = getRangeBoundary($rangeStart, $cidr, 'start',false, true);\n    $end = getRangeBoundary($rangeStart, $cidr, 'end',false, true);\n    $ipBin = inet_pton($ip);\n    return ($ipBin &gt;= $start &amp;&amp; $ipBin &lt;= $end);\n}<\/code><\/pre>\n<p>\n\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e. \u041a\u0430\u043a\u0438\u0435 \u0435\u0449\u0451 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e \u0412\u0430\u0448\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b? \u041b\u044e\u0431\u044b\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438 \u043a\u043e\u0434-\u0440\u0435\u0432\u044c\u044e \u0433\u043e\u0440\u044f\u0447\u043e \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0412\u044b \u0443\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0435\u0441\u044c \u043d\u0430\u0448\u0438\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0443\u043c\u0430\u0435\u0442\u0435 \u0438\u043c \u0441\u0442\u0430\u0442\u044c, \u043f\u043e \u0441\u043b\u0443\u0447\u0430\u044e \u0432\u044b\u0445\u043e\u0434\u0430 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u044b \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c \u0412\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u043b\u043e\u043a \/64 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u0441\u043b\u0443\u0433 vps \u0438\u043b\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u0434\u0430\u0442\u0430 \u0446\u0435\u043d\u0442\u0440\u0435 Equinix Tier IV, \u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u044b \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u0432 \u043e\u0442\u0434\u0435\u043b \u043f\u0440\u043e\u0434\u0430\u0436, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u0432 \u0442\u0438\u043a\u0435\u0442\u0435. \u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e \u043c\u0430\u0440\u0442\u0430 2020-\u0433\u043e \u0433\u043e\u0434\u0430.<\/p>\n<h3>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0435\u043a\u043b\u0430\u043c\u044b \ud83d\ude42<\/h3>\n<p>\n\u0421\u043f\u0430\u0441\u0438\u0431\u043e, \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u0451\u0442\u0435\u0441\u044c \u0441 \u043d\u0430\u043c\u0438. \u0412\u0430\u043c \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u043d\u0430\u0448\u0438 \u0441\u0442\u0430\u0442\u044c\u0438? \u0425\u043e\u0442\u0438\u0442\u0435 \u0432\u0438\u0434\u0435\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432? \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u043d\u0430\u0441, \u043e\u0444\u043e\u0440\u043c\u0438\u0432 \u0437\u0430\u043a\u0430\u0437 \u0438\u043b\u0438 \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u0432 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u043c, <noindex><a rel=\"nofollow\" href=\"https:\/\/ua-hosting.company\/cloudvps\/nl\">\u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 VPS \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043e\u0442 $4.99<\/a><\/noindex>, <b>\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 entry-level \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d \u043d\u0430\u043c\u0438 \u0434\u043b\u044f \u0412\u0430\u0441:<\/b> <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/company\/ua-hosting\/blog\/347386\/\">\u0412\u0441\u044f \u043f\u0440\u0430\u0432\u0434\u0430 \u043e VPS (KVM) E5-2697 v3 (6 Cores) 10GB DDR4 480GB SSD 1Gbps \u043e\u0442 $19 \u0438\u043b\u0438 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440?<\/a><\/noindex> (\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0441 RAID1 \u0438 RAID10, \u0434\u043e 24 \u044f\u0434\u0435\u0440 \u0438 \u0434\u043e 40GB DDR4).<\/p>\n<p><b>Dell R730xd \u0432 2 \u0440\u0430\u0437\u0430 \u0434\u0435\u0448\u0435\u0432\u043b\u0435 \u0432 \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u0435 Equinix Tier IV \u0432 \u0410\u043c\u0441\u0442\u0435\u0440\u0434\u0430\u043c\u0435?<\/b> \u0422\u043e\u043b\u044c\u043a\u043e \u0443 \u043d\u0430\u0441 <b><noindex><a rel=\"nofollow\" href=\"https:\/\/ua-hosting.company\/serversnl\">2 \u0445 Intel TetraDeca-Core Xeon 2x E5-2697v3 2.6GHz 14C 64GB DDR4 4x960GB SSD 1Gbps 100 \u0422\u0412 \u043e\u0442 $199<\/a><\/noindex> \u0432 \u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0430\u0445! <b>Dell R420 \u2014 2x E5-2430 2.2Ghz 6C 128GB DDR3 2x960GB SSD 1Gbps 100TB \u2014 \u043e\u0442 $99!<\/b><\/b> \u0427\u0438\u0442\u0430\u0439\u0442\u0435 \u043e \u0442\u043e\u043c <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/company\/ua-hosting\/blog\/329618\/\">\u041a\u0430\u043a \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043a\u043e\u0440\u043f. \u043a\u043b\u0430\u0441\u0441\u0430 c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 Dell R730xd \u04155-2650 v4 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c\u044e 9000 \u0435\u0432\u0440\u043e \u0437\u0430 \u043a\u043e\u043f\u0435\u0439\u043a\u0438?<\/a><\/noindex><br \/>\n<br \/>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/ua-hosting\/blog\/484586\/\">habr.com<\/a><\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 LIR \u0438 \/29 \u0431\u043b\u043e\u043a IPv6. \u0410 \u0441\u043b\u0435\u0434\u043e\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u0435\u0441\u0442\u0438 \u0443\u0447\u0451\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439. \u0418 \u043a\u043e\u043b\u044c \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0448 \u0431\u0438\u043b\u043b\u0438\u043d\u0433 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 PHP, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0438 \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u044f\u0437\u044b\u043a \u2014 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u043d\u044b\u0439 \u0432 \u043f\u043b\u0430\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 IPv6. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u043d\u0430\u0448\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u0438 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":55753,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-55752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 LIR \u0438 \/29 \u0431\u043b\u043e\u043a IPv6. \u0410 \u0441\u043b\u0435\u0434\u043e\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u0435\u0441\u0442\u0438 \u0443\u0447\u0451\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439. \u0418 \u043a\u043e\u043b\u044c \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0448 \u0431\u0438\u043b\u043b\u0438\u043d\u0433 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 PHP, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0438 \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u044f\u0437\u044b\u043a \u2014 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u043d\u044b\u0439 \u0432 \u043f\u043b\u0430\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 IPv6. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u043d\u0430\u0448\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u0438\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/rabota-s-ipv6-v-php\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 IPv6 \u0432 PHP | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 LIR \u0438 \/29 \u0431\u043b\u043e\u043a IPv6. \u0410 \u0441\u043b\u0435\u0434\u043e\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u0435\u0441\u0442\u0438 \u0443\u0447\u0451\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439. \u0418 \u043a\u043e\u043b\u044c \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0448 \u0431\u0438\u043b\u043b\u0438\u043d\u0433 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 PHP, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0438 \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u044f\u0437\u044b\u043a \u2014 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u043d\u044b\u0439 \u0432 \u043f\u043b\u0430\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 IPv6. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u043d\u0430\u0448\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u0438\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/rabota-s-ipv6-v-php\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-01-27T21:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-02-18T11:03:54+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Arbeiten mit IPv6 in PHP | ProHoster","description":"K\u00fcrzlich haben wir den LIR-Status und einen \/29 IPv6-Block erhalten. Daraus ergab sich die Notwendigkeit, die zugewiesenen Subnetze zu verwalten. Da unser Billing in PHP geschrieben ist, musste ich mich ein wenig mit dem Thema besch\u00e4ftigen und erkennen, dass diese Sprache nicht die benutzerfreundlichste im Umgang mit IPv6 ist. Im Folgenden finden Sie unsere L\u00f6sungen f\u00fcr die entstandenen Herausforderungen im Umgang mit Adressen und","canonical_url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/rabota-s-ipv6-v-php","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"de_DE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 IPv6 \u0432 PHP | ProHoster","og:description":"\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 LIR \u0438 \/29 \u0431\u043b\u043e\u043a IPv6. \u0410 \u0441\u043b\u0435\u0434\u043e\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u0435\u0441\u0442\u0438 \u0443\u0447\u0451\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439. \u0418 \u043a\u043e\u043b\u044c \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0448 \u0431\u0438\u043b\u043b\u0438\u043d\u0433 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 PHP, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0438 \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u044f\u0437\u044b\u043a \u2014 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u043d\u044b\u0439 \u0432 \u043f\u043b\u0430\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 IPv6. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u043d\u0430\u0448\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u0438","og:url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/rabota-s-ipv6-v-php","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-01-27T21:00:00+00:00","article:modified_time":"2020-02-18T11:03:54+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"55752","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 19:37:38","updated":"2022-10-07 22:17:00"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/55752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/comments?post=55752"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/55752\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media\/55753"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media?parent=55752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/categories?post=55752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/tags?post=55752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}