// In meine Script funktionniert echo ganz gut aber bei preg_match("/\?p=(.*)&q/", $nextPageUrl, $machtesUrl) wird die Inhalt nicht gelesen
$nextPageUrl = $this->entryPagePath;
$i = 0;
do {
$categoryPageDom = $this->getPageDom($nextPageUrl);
$nextPageLinkDoms = $categoryPageDom->find('div[id=pagination]', 0)->find('ul li');
$countNexPageLinkDom = count($nextPageLinkDoms);
$ulliSearch = $categoryPageDom->find('div[id=pagination]', 0)->find('ul li', $countNexPageLinkDom-1);
if(preg_match("/next/", $ulliSearch->find('img', 0)->attr['src'])){
echo '<br>--'.$ulliSearch->find('a', 0)->attr['href'];
$nextPageUrl = $ulliSearch->find('a', 0)->attr['href'];
preg_match("/\?p=(.*)&q/", $nextPageUrl, $machtesUrl);
var_dump($machtesUrl);
die;
}else{
$nextPageUrl = null;
}
} while (!empty($nextPageUrl));
// Kann jemand mir helfen?
$nextPageUrl = $this->entryPagePath;
$i = 0;
do {
$categoryPageDom = $this->getPageDom($nextPageUrl);
$nextPageLinkDoms = $categoryPageDom->find('div[id=pagination]', 0)->find('ul li');
$countNexPageLinkDom = count($nextPageLinkDoms);
$ulliSearch = $categoryPageDom->find('div[id=pagination]', 0)->find('ul li', $countNexPageLinkDom-1);
if(preg_match("/next/", $ulliSearch->find('img', 0)->attr['src'])){
echo '<br>--'.$ulliSearch->find('a', 0)->attr['href'];
$nextPageUrl = $ulliSearch->find('a', 0)->attr['href'];
preg_match("/\?p=(.*)&q/", $nextPageUrl, $machtesUrl);
var_dump($machtesUrl);
die;
}else{
$nextPageUrl = null;
}
} while (!empty($nextPageUrl));
// Kann jemand mir helfen?

Kommentar