Спасибо большое, помогло)
при попытке спарсить раздачу с большим количеством ббкодов допустим эту
вываливается вот такое
Warning: preg_replace(): Compilation failed: regular expression is too large at offset 69932 in library/includes/functions_parser.php on line 63
PHP 5.5.20-pl0-gentoo
nginx/1.7.7
mysql 5.5.40-MariaDB
Инструкцию к движку читали? safe_mode включен.у меня вываливается такое
Notice: Undefined offset: 1 in /var/www/ivan/data/www/torrnada.ru/library/includes/functions_parser.php on line 17 Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /var/www/ivan/data/www/torrnada.ru/library/includes/functions_parser.php on line 134 Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /var/www/ivan/data/www/torrnada.ru/library/includes/functions_parser.php on line 96 Notice: Undefined offset: 1 in /var/www/ivan/data/www/torrnada.ru/library/includes/functions_parser.php on line 17 Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /var/www/ivan/data/www/torrnada.ru/library/includes/functions_parser.php on line 134 Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /var/www/ivan/data/www/torrnada.ru/library/includes/functions_parser.php on line 96
preg_match ('#<h1 class="maintitle"><a href=".*?">([\s\S]*?)</a></h1>#', $copy_page, $r_title);
Чтоб :: RuTracker.org в название темы не бралоОшибка времени / Time Lapse (Брэдли Кинг / Bradley King) [2014, Фантастика, Триллер, WEB-DLRip] DVO :: RuTracker.org
Ошибка времени / Time Lapse (Брэдли Кинг / Bradley King) [2014, Фантастика, Триллер, WEB-DLRip] DVO
Подскажи добрый человек это куда надо поставить?preg_match ('#<h1 class="maintitle"><a href=".*?">([\s\S]*?)</a></h1>#', $copy_page, $r_title);
вместо этого:Подскажи добрый человек это куда надо поставить?
preg_match ("#<title>(.*?)</title>#si", $copy_page, $r_title);
preg_match ("#<title>(.*?)</title>#si", $copy_page, $r_title);