{"id":168343,"date":"2013-02-05T11:25:03","date_gmt":"2013-02-05T07:25:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=168343"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=168343","title":{"rendered":"<span class=\"post_title\">\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0441 vk.com \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 PHP<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0441 \u0412\u041a \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 PHP<\/p>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0441 \u0432\u0441\u0435\u043c\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0441\u043e\u0446.\u0441\u0435\u0442\u0438 vkontakte.ru. \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435. \u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u044f \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c IFRAME \u0438\u043b\u0438 \u0436\u0435 \u0435\u0449\u0451 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0412\u041a, \u044f \u0445\u043e\u0442\u0435\u043b \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0434\u0435\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u0442\u0430\u043a, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043e\u043d\u043e \u043b\u0435\u0436\u0438\u0442 \u0443 \u043c\u0435\u043d\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435. \u041e\u0431\u043b\u0430\u0437\u0438\u0432 \u043f\u0430\u0440\u0443 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0441\u0430\u0439\u0442\u043e\u0432, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0447\u0442\u043e \u044f \u043d\u0430\u0448\u0451\u043b, \u044d\u0442\u043e \u0441\u0430\u0439\u0442\u044b \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0438\u0434\u0435\u043e, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0412\u0418\u0414\u0415\u041e\u0421\u0415\u0419\u0412\u0415\u0420 \u0438 \u0442\u043f. \u042d\u0442\u043e \u0432\u0441\u0451 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0431\u044b\u043b \u043a\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u043c\u043e\u0433 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0432\u043e\u0439 PHP \u0434\u0432\u0438\u0436\u043e\u043a.<br \/>  \u041d\u0430\u0448\u043b\u043e\u0441\u044c \u043f\u0430\u0440\u0443 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0445 PHP \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u2013 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u0438\u043b\u0438 \u043e\u0442 30 \u0434\u043e 500 \u0443.\u0435. \u041d\u043e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0438\u0437 \u043d\u0438\u0445 \u0431\u044b\u043b\u0438 \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u044b Zend Encoder \u2013 \u043e\u043c \u0438\u043b\u0438 \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0441\u0432\u043e\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u0438\u0434\u0435\u043e-\u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043d\u0435 \u0438\u043c\u0435\u043b\u0438 \u043e\u0441\u043e\u0431\u043e\u0439 \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043c\u0435\u043d\u044f.<br \/>  \u0422\u0430\u043a \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u0435. \u042f \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0430 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0449\u0435. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e \u044f \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0435\u043e \u0441 \u0412\u041a.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/plirex.com\/123.jpg\" alt=\"image\"\/><\/p>\n<h4>\u0412\u0445\u043e\u0434 \u0412 \u0412\u041a<\/h4>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u043a\u0443\u0441\u043a\u043e\u043c \u043a\u043e\u0434\u0430 \u0431\u044b\u043b \u0432\u0445\u043e\u0434 \u0432 \u0412\u041a. \u042f \u043f\u043e\u0440\u044b\u043b\u0441\u044f \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0438 \u043d\u0430\u0448\u0435\u043b \u043d\u0435\u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435: <\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  (\u041a\u043e\u0434 \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u043c\u043e\u0438\u0445 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435)  <\/p>\n<pre><code class=\"php\"> ini_set('error_reporting', E_ALL); ini_set ('display_errors', 1);  $user_agent = 'Mozilla\/5.0 (Windows; U; Windows NT 6.0; ru; rv:1.9.2.13) ' . 'Gecko\/20101203 Firefox\/3.6.13 ( .NET CLR 3.5.30729)';  $login = \u2018\u043b\u043e\u0433\u0438\u043d\u2019; $password = \u2018\u043f\u0430\u0440\u043e\u043b\u044c\u2019; function curl_gets_exec($ch, $redirects = 0, $curlopt_returntransfer = true, $curlopt_maxredirs = 10, $curlopt_header = false) {      curl_setopt($ch, CURLOPT_HEADER, true);     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);     $data = curl_exec($ch);      \t$header=substr($data,0,curl_getinfo($ch,CURLINFO_HEADER_SIZE)); \t$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); \t$exceeded_max_redirects = $curlopt_maxredirs &gt; $redirects;     $exist_more_redirects = false;     if ($http_code == 301 || $http_code == 302) {         if ($exceeded_max_redirects) {             list($header) = explode(&quot;\\r\\n\\r\\n&quot;, $data, 2);             $matches = array();             preg_match('\/(Location:|URI:)(.*?)\\n\/', $header, $matches);             $url = trim(array_pop($matches));             $url_parsed = parse_url($url);             if (isset($url_parsed)) {                 curl_setopt($ch, CURLOPT_URL, $url);                 $redirects++;                 return curl_gets_exec($ch, $redirects, $curlopt_returntransfer, $curlopt_maxredirs, $curlopt_header);             }         }         else {             $exist_more_redirects = true;         }     }     if ($data !== false) {         if (!$curlopt_header)             list(,$data) = explode(&quot;\\r\\n\\r\\n&quot;, $data, 2);         if ($exist_more_redirects) return false;         if ($curlopt_returntransfer) {             return $data;         }         else {             echo $data;             if (curl_errno($ch) === 0) return true;             else return false;         }     }     else {         return false;     } }  $ch = curl_init(); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch,CURLOPT_REFERER,'http:\/\/m.vk.com\/login?fast=1&hash=&s=0&to=');  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_COOKIEFILE,'cookie.txt'); curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); curl_setopt($ch, CURLOPT_POST, false); curl_setopt($ch, CURLOPT_POST, true);  curl_setopt($ch, CURLOPT_URL, 'https:\/\/login.vk.com\/?act=login&from_host=m.vk.com&from_protocol=http&ip_h=&pda=1'); $answer = curl_gets_exec($ch); $post = array(             'email' =&gt; $login,             'pass' =&gt; $password         );  curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); $answer = curl_gets_exec($ch); &lt;\/code&gt;  \u0414\u0430\u043d\u043d\u044b\u0439 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430 \u0434\u0435\u043b\u0430\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u2013 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441 , \u0442\u0430\u043a\u043e\u0439 \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u0431\u044b \u0435\u0433\u043e \u0434\u0435\u043b\u0430\u043b \u0432\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u044f \u0432\u0445\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0412\u041a, \u0411\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e : &lt;source lang=&quot;php&quot;&gt; curl_setopt($ch,CURLOPT_REFERER,'http:\/\/m.vk.com\/login?fast=1&hash=&s=0&to=');  \/\/ \u043e\u0442 \u043a\u0443\u0434\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435  curl_setopt($ch, CURLOPT_COOKIEFILE,'cookie.txt'); \/\/ \u043a\u0443\u0434\u0430 \u0443\u043f\u0430\u0434\u0443\u0442 \u043a\u0443\u043a\u0438\u0441\u044b (\u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0435\u043c\u0443 \u043f\u0440\u0430\u0432\u0430 777 , -  'cookie.txt' ) curl_setopt($ch, CURLOPT_URL, 'https:\/\/login.vk.com\/?act=login&from_host=m.vk.com&from_protocol=http&ip_h=&pda=1'); \/\/ \u043a\u0443\u0434\u0430  \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); \/\/\u0414\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u043e\u0441\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 (\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2013 \u044d\u0442\u043e \u0432\u0430\u0448\u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u043b\u043e\u0433\u0438\u043d) <\/code><\/pre>\n<p>  function curl_gets_exec \u2013 \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 CURL, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0432 \u0438 \u0442\u043f. <br \/>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u2014 <a href=\"http:\/\/php.net\/manual\/ru\/book.curl.php\">php.net\/manual\/ru\/book.curl.php<\/a> <\/p>\n<h4>\u041f\u0430\u0440\u0441\u0438\u0433 \u0412\u0438\u0434\u0435\u043e <\/h4>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u0438 \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0435\u0433\u043e. <br \/>  \u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0432\u0438\u0434\u0435\u043e\u0444\u0430\u0439\u043b\u044b \u0412\u041a \u0438\u043c\u0435\u044e\u0442 \u0432\u0438\u0434 \u2014 <a href=\"http:\/\/vk.com\/video2409212_161721801\">vk.com\/video2409212_161721801<\/a><br \/>  \u041d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f \u0447\u0442\u043e \u043e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 2 \u043a\u0443\u0441\u043e\u0447\u043a\u043e\u0432 \u00ab2409212\u00bb \u0438 \u00ab161721801\u00bb. <br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b 2 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 $vid \u0438 $oid, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0447\u0430\u043b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c GET \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c<\/p>\n<pre><code class=\"php\">$vid=$_GET['vid']; $oid=$_GET['oid']; <\/code><\/pre>\n<p>  \u0418 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b \u0442\u0430\u043a\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443  <\/p>\n<pre><code class=\"php\">$link=&quot;http:\/\/m.vk.com\/video{$vid}_{$oid}&quot;; <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043c\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0412\u041a \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c HTML \u0442\u0435\u043a\u0441 \u0441 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u0438\u0434\u0435\u043e, \u0432\u0435\u0441\u044c HTML \u043b\u043e\u0436\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e $answer<\/p>\n<pre><code class=\"php\">curl_setopt($ch, CURLOPT_URL, $link); $answer = curl_gets_exec($ch); <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u0437\u0430\u043c\u0430\u0440\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u043b\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 simple_html_dom, \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0438\u043b\u0438 \u044f \u0432\u044b\u043b\u043e\u0436\u0438\u043b \u0435\u0451 \u0437\u0434\u0435\u0441\u044c \u2013 <a href=\"http:\/\/v.plirex.com\/simplehtmldom.rar\">v.plirex.com\/simplehtmldom.rar<\/a><br \/>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u0435\u043a Simple  <\/p>\n<pre><code class=\"php\">include &quot;simplehtmldom\/simple_html_dom.php&quot;; $html = new simple_html_dom(); <\/code><\/pre>\n<p>  \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 \u043d\u0435\u0439 HTML \u0442\u0435\u043a\u0441\u0442   <\/p>\n<pre><code class=\"php\">$html-&gt;load($answer);<\/code><\/pre>\n<p>  \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 DOM \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u00abvideo\u00bb, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <a href=\"http:\/\/vk.com\/video2409212_161721801\">vk.com\/video2409212_161721801<\/a> \u0432 HTML \u043a\u043e\u0434\u0435 \u0442\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u0441\u0441\u044b\u043b\u043e\u0447\u043a\u0438 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e, \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435  <\/p>\n<pre><code class=\"php\">$div_video=$html-&gt;find('video',0);<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0441\u0442\u044c \u043b\u0438 \u0442\u0430\u043c \u043d\u0443\u0436\u043d\u043e\u0435 \u043d\u0430\u043c \u0432\u0438\u0434\u0435\u043e <\/p>\n<pre><code class=\"php\">if($div_video-&gt;outertext==&quot;&quot;)die(\u201cVideo not found\u201d);<\/code><\/pre>\n<p>   \u0432\u043d\u0443\u0442\u0440\u0438 video \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0439 HTML \u043a\u043e\u0434<\/p>\n<pre><code class=\"html\">&lt;video preload=&quot;none&quot; controls=&quot;controls&quot; poster=&quot;http:\/\/cs527213.userapi.com\/u11174769\/video\/l_18a03288.jpg&quot;&gt; &lt;source src=&quot;http:\/\/cs527213.userapi.com\/u11174769\/videos\/dc3277461b.720.mp4&quot; type=&quot;video\/mp4&quot;&gt;&lt;\/source&gt; &lt;source src=&quot;http:\/\/cs527213.userapi.com\/u11174769\/videos\/dc3277461b.480.mp4&quot; type=&quot;video\/mp4&quot;&gt;&lt;\/source&gt; &lt;source src=&quot;http:\/\/cs527213.userapi.com\/u11174769\/videos\/dc3277461b.360.mp4&quot; type=&quot;video\/mp4&quot;&gt;&lt;\/source&gt; &lt;source src=&quot;http:\/\/cs527213.userapi.com\/u11174769\/videos\/dc3277461b.240.mp4&quot; type=&quot;video\/mp4&quot;&gt;&lt;\/source&gt; &lt;div class=&quot;img&quot;&gt;&lt;img src=&quot;http:\/\/cs527213.userapi.com\/u11174769\/video\/l_18a03288.jpg&quot; alt=&quot;&quot;&gt;&lt;\/div&gt; &lt;div class=&quot;no_pl&quot;&gt; \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 &lt;\/div&gt; &lt;\/video&gt;  <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0435\u0441\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b &#8216;source&#8217; \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f \u0441\u0441\u044b\u043b\u043e\u0447\u043a\u0438 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e.<br \/>  \u0425\u043e\u0447\u0443 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u044d\u0442\u0438 \u0441\u0441\u044b\u043b\u043e\u0447\u043a\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0432\u0438\u0434\u0435\u043e, \u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 <a href=\"http:\/\/vk.com\/video2409212_161721801\">vk.com\/video2409212_161721801<\/a>.<br \/>  \u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e \u0438\u043c\u0435\u044e\u0442 \u0432\u0438\u0434 \u2014 <a href=\"http:\/\/cs527213.userapi.com\/u11174769\/videos\/dc3277461b.240.mp4\">cs527213.userapi.com\/u11174769\/videos\/dc3277461b.240.mp4<\/a><br \/>  \u0413\u0434\u0435 u11174769 \u2013 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0435\u0448, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043d\u043e\u0432\u044b\u0439.  <\/p>\n<pre><code class=\"php\">$sVideo=$div_video-&gt;find('source');  \/\/\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0432\u0438\u0434\u0435\u043e  $aBuf=&quot;&quot;; $j=0; foreach($sVideo as $post) {  \/*$aBuf[$j]=$post-&gt;outertext;   $aBuf[$j]=substr($aBuf[$j],stripos($aBuf[$j],'src=&quot;')+5,strlen($aBuf[$j]));  $aBuf[$j]=substr($aBuf[$j],0,stripos($aBuf[$j],'&quot; type')); *\/ $aBuf[$j]=$post-&gt;src;  $j++;  \/\/echo &quot;{$aBuf[$j]} \\n |&quot;; } <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0411\u0435\u0440\u0435\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u043f\u0430\u0432\u0448\u0443\u044e\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0443 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0435\u0451 <\/p>\n<pre><code class=\"php\">$link= $aBuf[0]; header('Content-type: content=video\/mp4'); header(&quot;Content-Disposition: attachment; filename=vPlirex.mpg&quot;); header(&quot;Pragma: no-cache&quot;); header(&quot;Expires: 0&quot;);  $tFile = fopen($link,'r'); while (!feof($tFile)) {    echo( fgets($tFile)); } fclose($tFile);  <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0412\u044b\u0432\u043e\u0434<\/h4>\n<p>  \u042f \u043e\u043f\u0438\u0441\u0430\u043b \u043a\u0440\u0430\u0442\u043a\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0434\u0435\u043e \u0441 \u0412\u041a. \u0414\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u043c \u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043e\u043a. 1-\u043c \u0434\u0435\u043b\u043e\u043c \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u0443\u043a\u0438\u0441\u043e\u0432 \u0432 \u0424\u0410\u0419\u041b\u0415, \u0430 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e.<br \/>  \u041d\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. \u0422\u0430\u043a \u0447\u0442\u043e \u0434\u0435\u0440\u0437\u0430\u0439\u0442\u0435. <br \/>  \u0412\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043f\u043e\u043b\u043d\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 <a href=\"http:\/\/v.plirex.com\/v.plirex.com.rar\">v.plirex.com\/v.plirex.com.rar<\/a><br \/>  \u0422\u0430\u043a\u0436\u0435 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0434\u0435\u043c\u043a\u0443 \u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u0435 <a href=\"http:\/\/v.plirex.com\">v.plirex.com<\/a><\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/168343\/\"> http:\/\/habrahabr.ru\/post\/168343\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0441 \u0412\u041a \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 PHP<\/p>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0441 \u0432\u0441\u0435\u043c\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0441\u043e\u0446.\u0441\u0435\u0442\u0438 vkontakte.ru. \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435. \u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u044f \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c IFRAME \u0438\u043b\u0438 \u0436\u0435 \u0435\u0449\u0451 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0412\u041a, \u044f \u0445\u043e\u0442\u0435\u043b \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0434\u0435\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u0442\u0430\u043a, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043e\u043d\u043e \u043b\u0435\u0436\u0438\u0442 \u0443 \u043c\u0435\u043d\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435. \u041e\u0431\u043b\u0430\u0437\u0438\u0432 \u043f\u0430\u0440\u0443 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0441\u0430\u0439\u0442\u043e\u0432, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0447\u0442\u043e \u044f \u043d\u0430\u0448\u0451\u043b, \u044d\u0442\u043e \u0441\u0430\u0439\u0442\u044b \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0438\u0434\u0435\u043e, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0412\u0418\u0414\u0415\u041e\u0421\u0415\u0419\u0412\u0415\u0420 \u0438 \u0442\u043f. \u042d\u0442\u043e \u0432\u0441\u0451 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0431\u044b\u043b \u043a\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u043c\u043e\u0433 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0432\u043e\u0439 PHP \u0434\u0432\u0438\u0436\u043e\u043a.<br \/>  \u041d\u0430\u0448\u043b\u043e\u0441\u044c \u043f\u0430\u0440\u0443 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0445 PHP \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u2013 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u0438\u043b\u0438 \u043e\u0442 30 \u0434\u043e 500 \u0443.\u0435. \u041d\u043e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0438\u0437 \u043d\u0438\u0445 \u0431\u044b\u043b\u0438 \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u044b Zend Encoder \u2013 \u043e\u043c \u0438\u043b\u0438 \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0441\u0432\u043e\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u0438\u0434\u0435\u043e-\u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043d\u0435 \u0438\u043c\u0435\u043b\u0438 \u043e\u0441\u043e\u0431\u043e\u0439 \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043c\u0435\u043d\u044f.<br \/>  \u0422\u0430\u043a \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u0435. \u042f \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0430 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0449\u0435. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e \u044f \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0435\u043e \u0441 \u0412\u041a.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/plirex.com\/123.jpg\" alt=\"image\"\/><\/p>\n<h4>\u0412\u0445\u043e\u0434 \u0412 \u0412\u041a<\/h4>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u043a\u0443\u0441\u043a\u043e\u043c \u043a\u043e\u0434\u0430 \u0431\u044b\u043b \u0432\u0445\u043e\u0434 \u0432 \u0412\u041a. \u042f \u043f\u043e\u0440\u044b\u043b\u0441\u044f \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0438 \u043d\u0430\u0448\u0435\u043b \u043d\u0435\u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435: <\/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-168343","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/168343","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=168343"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/168343\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}