Unable to parse data from https://anistar.me/ . Code:
<?php include_once 'phpQuery-onefile.php'; // $url = 'https://anistar.me/'; // $html = phpQuery::newDocument(file_get_contents($url))->html(); // echo $html; function get_web_page( $url ) { $uagent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8"; $ch = curl_init( $url ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // возвращает веб-страницу curl_setopt($ch, CURLOPT_HEADER, 0); // не возвращает заголовки curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // переходит по редиректам curl_setopt($ch, CURLOPT_ENCODING, ""); // обрабатывает все кодировки curl_setopt($ch, CURLOPT_USERAGENT, $uagent); // useragent curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 12000); // таймаут соединения sleep(10); curl_setopt($ch, CURLOPT_TIMEOUT, 12000); // таймаут ответа curl_setopt($ch, CURLOPT_MAXREDIRS, 10); // останавливаться после 10-ого редиректа $content = curl_exec( $ch ); $err = curl_errno( $ch ); $errmsg = curl_error( $ch ); $header = curl_getinfo( $ch ); curl_close( $ch ); $header['errno'] = $err; $header['errmsg'] = $errmsg; $header['content'] = $content; return $header; } $sss = get_web_page('https://anistar.me/'); echo $sss['content']; Here is the result: http://test.tetkaadj.com/test.php