file_get_contents(): stream does not support seeking / Wann wurde PHP das Verhalten zu dieser geändert?

Wann wurde PHP das Verhalten zu dieser geändert?

Ab, welche PHP-version es ist?


Warning: file_get_contents(): stream does not support seeking in
/simple_html_dom.php

Warning: file_get_contents(): Failed to seek to position -1 im stream in
/simple_html_dom.php


include('parser/simple_html_dom.php');
$url = "https://en.wikipedia.org/wiki/Stack_Overflow";
$html = file_get_html($url);
if ($html !== false) {
  foreach($html->find('div#mw-content-text') as $item){
    $item->plaintext;
  }
}
  • diese ocurrs in PHP 7.1, aber im 7.0 d 5.6 funktionieren.
  • Diese Kompatibilität Problem wurde behoben, ab 1.7
InformationsquelleAutor re1 | 2017-03-09
Schreibe einen Kommentar