Ankündigung

Einklappen
Keine Ankündigung bisher.

Inhalt von Variable wird nicht gelesen

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Inhalt von Variable wird nicht gelesen

    // 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?

  • #2
    1. Benutze bitte die php-Tags um deinen Code hier im Forum schön zu machen.
    2. Sicher, dass in $nextPageUtl überhaupt was drin strht?
    3. Sicher dass du fortgeschritten bist (dazu gehört debugging-KnowHow).

    Kommentar


    • #3
      @mepeisen Typisch Deutsch. Wenn du so bist was machst du hier????? geht mal bei google arbeiten do sind richtig gute programmierer. Du hast nicht meine Antworten

      Kommentar


      • #4
        1. Please use our powerful PHP-BBCodes to grant us the required readability.
        2. Determine that $nextPageUrl is not empty.
        3. Are you sure that your programming skills reaches the professional level ? We recommendend for any professional programmer the ability to debug.
        4. The next folk abuse could be your last, keep in mind that.

        Kommentar

        Lädt...
        X