php-simple-html-dom-parser icon indicating copy to clipboard operation
php-simple-html-dom-parser copied to clipboard

PHP Simple HTML DOM Parser adaptation for Composer and PSR-0

Results 53 php-simple-html-dom-parser issues
Sort by recently updated
recently updated
newest added

(1/1) ErrorException file_get_contents(): stream does not support seeking $html = HtmlDomParser::file_get_html('http://www.google.com/'); foreach($html->find('a') as $element) echo $element->href . '';

I have been experiencing the error "Warning: file_get_contents(): stream does not support seeking..." since I upgraded to PHP 7.1.x Any fixes ?

This pattern: ([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-:]+)(?:([!*^$]?=)["']?(.*?)["']?)?\])?([\/, ]+) Treats the - in both the character groups as ranges rather than characters to match meaning that the regex is looking for everything including and between...

This pattern: ``` ([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-:]+)(?:([!*^$]?=)["']?(.*?)["']?)?\])?([\/, ]+) ``` Treats the `-` in both the character groups as ranges rather than characters to match meaning that the regex is looking for everything including...

PCRE2 is strict that the hyphen needs to be moved to the end, or escaped for this to work. preg_match('/[\w\-.]+/', ''); The above code should compile just fine with PHP...

When I use your library together with Laravel and take advantage of Laravel's possibility to start local development server using command `php artisan serve` I run into an issue where...

on $contents = file_get_contents($url, $use_include_path, $context, $offset = 0) put an & on character & it happen just when i change my hosting provider. in other hosting provider works great

Else your work is not compatible with php7.3.1

Is it possible to extract contents of first text node? I.e. string `Hello` in subtree ``` Hello World! ```

will return false if file_get_contents fails