{"id":256397,"date":"2015-04-30T13:20:05","date_gmt":"2015-04-30T09:20:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=256397"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=256397","title":{"rendered":"\u041f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u044f\u0436\u0435\u043b\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 PHP"},"content":{"rendered":"<p> \t\t\t\u0421\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u043a\u0430\u043a-\u0442\u043e \u0438\u043c\u0435\u0442\u044c \u0434\u0435\u043b\u043e \u0441 \u0442\u044f\u0436\u0435\u043b\u044b\u043c PHP-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c. \u041d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f, \u043f\u043e\u043a\u0430 \u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 PHP \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0440\u0430\u0441\u0447\u0451\u0442\u044b. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0438\u0431\u0435\u0433\u0430\u044e\u0442 \u043a \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u043c\u0443 \u0432\u044b\u0432\u043e\u0434\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0439:<\/p>\n<pre><code class=\"javascript\">&lt;script&gt;document.getElementById('progress').style.width = '1%';&lt;\/script&gt; <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043c\u0435\u043d\u044f \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043c\u043d\u0435 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 3000\u20145000. \u042f \u043f\u0440\u0438\u043a\u0438\u043d\u0443\u043b, \u0447\u0442\u043e \u0432\u0435\u043b\u0438\u043a\u043e\u0432\u0430\u0442 \u0442\u0440\u0430\u0444\u0438\u043a \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0439 \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u0437\u0430\u0442\u0435\u0438. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043c\u043d\u0435 \u0442\u0430\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c \u0441 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f, \u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u0432\u043e\u0432\u0441\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0441\u044f \u0443\u0440\u043e\u0434\u043b\u0438\u0432: \u0444\u0443\u0442\u0435\u0440 \u0434\u043e\u0439\u0434\u0435\u0442 \u0435\u0449\u0435 \u043d\u0435 \u0441\u043a\u043e\u0440\u043e \u2014 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e 100% \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>  \u0423\u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0442\u0440\u0443\u0434\u0430 \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u043e, \u043d\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0438\u043d\u0443\u0441\u044b \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043c\u0435\u043d\u044f \u043e\u0431\u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u043f\u043e\u0438\u0441\u043a\u0430\u043c \u0431\u043e\u043b\u0435\u0435 \u0438\u0437\u044f\u0449\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0432\u043e\u0434\u044f\u0449\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. \u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b? \u2014 \u0414\u0430. \u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0434\u043d\u043e\u0433\u043e-\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u0430\u0439\u0442\u0430 \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430? \u2014 \u0414\u0430. \u041c\u043e\u0436\u0435\u043c \u043b\u0438 \u043c\u044b \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e (\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e) \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>XMLHttpRequest.onreadystatechange<\/code>? \u2014 \u0414\u0430. \u041c\u044b \u0434\u0430\u0436\u0435 \u043c\u043e\u0436\u0435\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043c\u0438 HTTP \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0431\u0449\u0435\u0439 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 (\u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435).<\/p>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435. \u041e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u2014 \u044d\u0442\u043e \u043f\u0443\u043b\u044c\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u0421 \u043f\u0443\u043b\u044c\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443. \u042d\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 XMLHttpRequest \u2014 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 (\u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430) \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043e\u0434\u0438\u043d \u0431\u0430\u0439\u0442 \u2014 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0440\u043e\u0431\u0435\u043b\u0430. \u041d\u0430 \u043f\u0443\u043b\u044c\u0442\u0435 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 <code>onreadystatechange<\/code> \u043c\u044b, \u043f\u043e\u043b\u0443\u0447\u0430\u044f \u0431\u0430\u0439\u0442 \u0437\u0430 \u0431\u0430\u0439\u0442\u043e\u043c, \u0441\u043c\u043e\u0436\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u043e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>  \u0421\u0445\u0435\u043c\u0430 \u0442\u0430\u043a\u0430\u044f. \u0421\u043a\u0440\u0438\u043f\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"php\">&lt;?php  set_time_limit(0); for ($i = 0; $i &lt; 50; $i++)\t\/\/ \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0447\u0442\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 50 \t{ \tsleep(1);\t\/\/ \u0422\u044f\u0436\u0435\u043b\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \techo ' '; \t}  <\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a <code>XMLHttpRequest.onreadystatechange<\/code>:<\/p>\n<pre><code class=\"javascript\">xhr.onreadystatechange = function() \t{ \tif (this.readyState == 3) \t\t{ \t\tvar progress = this.responseText.length; \t\tdocument.getElementById('progress').style.width = progress + '%'; \t\t} \t}; <\/code><\/pre>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u0441\u0435\u0433\u043e 50. \u041e\u0431 \u044d\u0442\u043e\u043c \u043c\u044b \u0437\u043d\u0430\u0435\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u0430\u043c\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0438\u0445 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u0410 \u0435\u0441\u043b\u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u043c \u0438\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u043e\u0436\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f? \u041f\u0440\u0438 <code>readyState == 2<\/code> \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u044d\u0442\u0438\u043c \u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439:<\/p>\n<pre><code class=\"php\">header('X-Progress-Max: 50'); <\/code><\/pre>\n<p>  \u0410 \u043d\u0430 \u043f\u0443\u043b\u044c\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0438 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043c \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"javascript\">var progressMax = 100;  xhr.onreadystatechange = function() \t{ \tif (this.readyState == 2) \t\t{ \t\tprogressMax = +this.getResponseHeader('X-Progress-Max') || progressMax; \t\t} \telse if (this.readyState == 3) \t\t{ \t\tvar progress = 100 * this.responseText.length \/ progressMax; \t\tdocument.getElementById('progress').style.width = progress + '%'; \t\t} \t}; <\/code><\/pre>\n<p>  \u041e\u0431\u0449\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u044f\u0441\u043d\u0430. \u041f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043e \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u044f\u0445.<\/p>\n<p>  \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0435\u0441\u043b\u0438 \u0432 PHP \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043e\u043f\u0446\u0438\u044f <code>output_buffering<\/code>, \u043d\u0443\u0436\u043d\u043e \u044d\u0442\u043e \u0443\u0447\u0435\u0441\u0442\u044c. \u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e: \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430, \u0442\u043e \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 <code>ob_get_level()<\/code> \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 0. \u041d\u0443\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438 \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044e. \u0415\u0449\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0441\u0432\u044f\u0437\u043a\u0443 Nginx \u2194 FastCGI \u2194 PHP, \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0435\u0441\u0442\u044c, \u0447\u0442\u043e \u0438 FastCGI \u0438 \u0441\u0430\u043c Nginx \u0431\u0443\u0434\u0443\u0442 \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441\u0436\u0438\u043c\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438. \u0423\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<pre><code class=\"php\">header('Content-Encoding: none', true); <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 gzip \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0430\u043c\u043e\u0433\u043e PHP-\u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0442\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c FastCGI \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n<pre><code class=\"nginx\">fastcgi_keep_conn on; <\/code><\/pre>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0442\u043e \u043b\u0438 Nginx, \u0442\u043e \u043b\u0438 FastCGI, \u0442\u043e \u043b\u0438 \u0441\u0430\u043c Chrome \u0441\u0447\u0438\u0442\u0430\u044e\u0442, \u0447\u0442\u043e \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0435\u043c-\u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0442\u0435\u043b\u0430 \u043e\u0442\u0432\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435\u0433\u043e-\u043d\u0430\u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0431\u0430\u0439\u0442 \u2014 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0440\u0430\u0441\u0442\u043e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u044c \u0432\u0441\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0431\u0430\u0439\u0442\u0430\u043c\u0438. \u041d\u0443\u0436\u043d\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f, \u0441\u043a\u0430\u0436\u0435\u043c, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0435 20 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c. \u041d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 PHP \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u00ab\u0432\u044b\u043f\u043b\u044e\u043d\u0443\u0442\u044c\u00bb \u0432 \u0432\u044b\u0432\u043e\u0434, \u0430 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 <code>onreadystatechange<\/code> \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u2014 \u0440\u0430\u0437 \u0443\u0436 \u0432\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445 \u2014 \u0442\u043e \u0438 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0442\u043e\u0436\u0435 \u043b\u0443\u0447\u0448\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435. \u041d\u0430\u0437\u043e\u0432\u0435\u043c \u044d\u0442\u043e <em>padding<\/em>-\u043e\u043c.<\/p>\n<pre><code class=\"php\">&lt;?php  header('X-Progress-Padding: 20', true); echo str_repeat(' ', 20); flush();  \/\/ ... <\/code><\/pre>\n<p>  \u041d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0435\u0441\u0442\u044c:<\/p>\n<pre><code class=\"javascript\">var progressMax = 100, \tprogressPadding = 0;  xhr.onreadystatechange = function() \t{ \tif (this.readyState == 2) \t\t{ \t\tprogressMax = +this.getResponseHeader('X-Progress-Max') || progressMax; \t\tprogressPadding = +this.getResponseHeader('X-Progress-Padding') || progressPadding; \t\t} \telse if (this.readyState == 3) \t\t{ \t\tvar progress = 100 * (this.responseText.length - progressPadding) \/ progressMax; \t\tdocument.getElementById('progress').style.width = progress + '%'; \t\t} \t}; <\/code><\/pre>\n<p>  \u041e\u0442\u043a\u0443\u0434\u0430 \u0447\u0438\u0441\u043b\u043e 20? \u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0436\u0435\u0442\u0435 \u2014 \u0431\u0443\u0434\u0443 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u0435\u043b\u0435\u043d. \u042f \u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0443\u0442\u0435\u043c.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u043d\u0430\u0441\u0447\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 PHP <code>output_buffering<\/code>. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0438 \u0432\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0435\u0435 \u043d\u0430\u0440\u0443\u0448\u0430\u0442\u044c, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439:<\/p>\n<pre><code class=\"php\">function ob_ignore($data, $flush = false) \t{ \t$ob = array(); \twhile (ob_get_level()) \t\t{ \t\tarray_unshift($ob, ob_get_contents()); \t\tob_end_clean(); \t\t} \t \techo $data; \tif ($flush) \t\tflush(); \t \tforeach ($ob as $ob_data) \t\t{ \t\tob_start(); \t\techo $ob_data; \t\t} \treturn count($ob); \t} <\/code><\/pre>\n<p>  \u0421 \u0435\u0435 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438 \u0432\u0441\u0435 \u0443\u0440\u043e\u0432\u043d\u0438 \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u0441\u0435 \u0431\u0443\u0444\u0435\u0440\u044b \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0430 \u043f\u043e\u0447\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0431\u0435\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0438? \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u043b\u044e\u0431\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0432\u0435\u0431\u0435 \u0442\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u0440\u0442\u0438\u0448\u044c. \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043e\u0442\u0447\u0435\u0442 \u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u0432 JSON.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0432 \u043f\u043e\u0440\u044f\u0434\u043e\u043a, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u0434 \u0432\u0441\u0435\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0432\u043e\u0442 \u0447\u0442\u043e:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">progress-loader.js<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">function ProgressLoader(url, callbacks) \t{ \tvar _this = this; \tfor (var k in callbacks) \t\tif (typeof callbacks[k] != 'function') \t\t\tcallbacks[k] = false; \tdelete k; \t \tfunction getXHR() \t\t{ \t\tvar xhr; \t\ttry \t\t\t{ \t\t\txhr = new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;); \t\t\t} \t\tcatch (e) \t\t\t{ \t\t\ttry \t\t\t\t{ \t\t\t\txhr = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;); \t\t\t\t} \t\t\tcatch (E) \t\t\t\t{ \t\t\t\txhr = false; \t\t\t\t} \t\t\t} \t\tif (!xhr && typeof XMLHttpRequest != 'undefined') \t\t\txhr = new XMLHttpRequest(); \t\treturn xhr; \t\t} \t \tthis.xhr = getXHR(); \tthis.xhr.open('GET', url, true); \t \tvar contentLoading = false, \t\tprogressPadding = 0, \t\tprogressMax = -1, \t\tprogress = 0, \t\tprogressPerc = 0; \t \tthis.xhr.onreadystatechange = function() \t\t{ \t\tif (this.readyState == 2) \t\t\t{ \t\t\tcontentLoading = false; \t\t\tprogressPadding = +this.getResponseHeader('X-Progress-Padding') || progressPadding; \t\t\tprogressMax = +this.getResponseHeader('X-Progress-Max') || progressMax; \t\t\tif (callbacks.start) \t\t\t\tcallbacks.start.call(_this, this.status); \t\t\t} \t\telse if (this.readyState == 3) \t\t\t{ \t\t\tif (!contentLoading) \t\t\t\tcontentLoading = !!this.responseText \t\t\t\t\t.replace(\/^\\s+\/, '');\t\/\/ .trimLeft() \u2014 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u041e_\u043e \t\t\t \t\t\tif (!contentLoading) \t\t\t\t{ \t\t\t\tprogress = this.responseText.length - progressPadding; \t\t\t\tprogressPerc = progressMax &gt; 0 ? progress \/ progressMax : -1; \t\t\t\tif (callbacks.progress) \t\t\t\t\t{ \t\t\t\t\tcallbacks.progress.call(_this, \t\t\t\t\t\tthis.status, \t\t\t\t\t\tprogress, \t\t\t\t\t\tprogressPerc, \t\t\t\t\t\tprogressMax \t\t\t\t\t\t); \t\t\t\t\t} \t\t\t\t} \t\t\telse if (callbacks.loading) \t\t\t\tcallbacks.loading.call(_this, this.status, this.responseText); \t\t\t} \t\telse if (this.readyState == 4) \t\t\t{ \t\t\tif (callbacks.end) \t\t\t\tcallbacks.end.call(_this, this.status, this.responseText); \t\t\t} \t\t}; \tif (callbacks.abort) \t\tthis.xhr.onabort = callbacks.abort; \t \tthis.xhr.send(null); \t \tthis.abort = function() \t\t{ \t\treturn this.xhr.abort(); \t\t}; \t \tthis.getProgress = function() \t\t{ \t\treturn progress; \t\t}; \t \tthis.getProgressMax = function() \t\t{ \t\treturn progressMax; \t\t}; \t \tthis.getProgressPerc = function() \t\t{ \t\treturn progressPerc; \t\t}; \t \treturn this; \t} <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">process.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">&lt;?php  function ob_ignore($data, $flush = false) \t{ \t$ob = array(); \twhile (ob_get_level()) \t\t{ \t\tarray_unshift($ob, ob_get_contents()); \t\tob_end_clean(); \t\t} \t \techo $data; \tif ($flush) \t\tflush(); \t \tforeach ($ob as $ob_data) \t\t{ \t\tob_start(); \t\techo $ob_data; \t\t} \treturn count($ob); \t}  if (($work = @$_GET['work']) &gt; 0) \t{ \theader(&quot;X-Progress-Max: $work&quot;, true, 200); \theader(&quot;X-Progress-Padding: 20&quot;); \tob_ignore(str_repeat(' ', 20), true); \t \tfor ($i = 0; $i &lt; $work; $i++) \t\t{ \t\tusleep(rand(100000, 500000)); \t\tob_ignore(' ', true); \t\t} \t \techo $work.' done!'; \tdie(); \t} <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">launcher.html<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;ProgressLoader&lt;\/title&gt; &lt;script type=&quot;text\/javascript&quot; src=&quot;progress-loader.js&quot;&gt;&lt;\/script&gt; &lt;style&gt; progress, button { \tdisplay: inline-block; \tvertical-align: middle; \tpadding: 0.4em 2em; \tmargin-right: 2em; } &lt;\/style&gt; &lt;\/head&gt; &lt;body&gt; &lt;progress id=&quot;progressbar&quot; value=&quot;0&quot; max=&quot;0&quot; style=&quot;display: none;&quot;&gt;&lt;\/progress&gt; &lt;button id=&quot;start&quot;&gt;Start\/Stop&lt;\/button&gt; &lt;script&gt;  var progressbar = document.getElementById('progressbar'), \tbtnStart = document.getElementById('start'), \tworker = false;  btnStart.onclick = function() \t{ \tif (!worker) \t\t{ \t\tvar url = 'process.php?work=42'; \t\tworker = new ProgressLoader(url, { \t\t\tstart: function(status) \t\t\t\t{ \t\t\t\tprogressbar.style.display = 'inline-block'; \t\t\t\t}, \t\t\tprogress: function(status, progress, progressPerc, progressMax) \t\t\t\t{ \t\t\t\tprogressbar.value = +progressbar.max * progressPerc; \t\t\t\t}, \t\t\tend: function(status, s) \t\t\t\t{ \t\t\t\tprogressbar.style.display = 'none'; \t\t\t\tworker = false; \t\t\t\t}, \t\t\t}); \t\t} \telse \t\t{ \t\tworker.abort(); \t\tprogressbar.style.display = 'none'; \t\tworker = false; \t\t} \t};  &lt;\/script&gt; &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0442\u043e\u043c: <i>\u041f\u0440\u043e\u0448\u0443 \u043d\u0435 \u0431\u0438\u0442\u044c \u043d\u043e\u0433\u0430\u043c\u0438. \u0413\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u044b \u043d\u0435 \u0434\u0430\u043b\u043e \u0432\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0435 \u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u0432\u044b\u0434\u0443\u043c\u0430\u0442\u044c, \u0432\u0432\u0438\u0434\u0443 \u0447\u0435\u0433\u043e \u044f \u0438 \u0440\u0435\u0448\u0438\u043b \u0435\u0435 \u0438\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0432\u043e\u0435\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438.<\/i> \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/257053\/\"> http:\/\/habrahabr.ru\/post\/257053\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p> \t\t\t\u0421\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u043a\u0430\u043a-\u0442\u043e \u0438\u043c\u0435\u0442\u044c \u0434\u0435\u043b\u043e \u0441 \u0442\u044f\u0436\u0435\u043b\u044b\u043c PHP-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c. \u041d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f, \u043f\u043e\u043a\u0430 \u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 PHP \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0440\u0430\u0441\u0447\u0451\u0442\u044b. \u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0438\u0431\u0435\u0433\u0430\u044e\u0442 \u043a \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u043c\u0443 \u0432\u044b\u0432\u043e\u0434\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0439:<\/p>\n<pre><code class=\"javascript\">&lt;script&gt;document.getElementById('progress').style.width = '1%';&lt;\/script&gt; <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043c\u0435\u043d\u044f \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043c\u043d\u0435 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-256397","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/256397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256397"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/256397\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}