A
Andresledo
Gamma
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Buenos días,
Tengo un problema con el simple html get que no acabo de resolver, en local me da el error siguiente en appserver con PHP, sin embargo, en el hosting funciona correctamente el mismo código.
Warning: file_get_contents(): stream does not support seeking in C:\AppServ\www\scrap\simple_html_dom.php on line 75
Warning: file_get_contents(): Failed to seek to position -1 in the stream in C:\AppServ\www\scrap\simple_html_dom.php on line 75
Fatal error: Uncaught Error: Call to a member function find() on boolean in C:\AppServ\www\scrap\index.php:6 Stack trace: #0 {main} thrown in C:\AppServ\www\scrap\index.php on line 6
Supongo que me falta alguna extensión en PHP o algo por el estilo...
El código que utilizo es el siguiente:
<?php
include ("simplehtmldom.php");
$html = file_get_html('http://www.google.com/');
// Find all images
foreach($html->find('img') as $element)
echo $element->src . '<br>';
// Find all links
foreach($html->find('a') as $element)
echo $element->href . '<br>';
?>
Tengo un problema con el simple html get que no acabo de resolver, en local me da el error siguiente en appserver con PHP, sin embargo, en el hosting funciona correctamente el mismo código.
Warning: file_get_contents(): stream does not support seeking in C:\AppServ\www\scrap\simple_html_dom.php on line 75
Warning: file_get_contents(): Failed to seek to position -1 in the stream in C:\AppServ\www\scrap\simple_html_dom.php on line 75
Fatal error: Uncaught Error: Call to a member function find() on boolean in C:\AppServ\www\scrap\index.php:6 Stack trace: #0 {main} thrown in C:\AppServ\www\scrap\index.php on line 6
Supongo que me falta alguna extensión en PHP o algo por el estilo...
El código que utilizo es el siguiente:
<?php
include ("simplehtmldom.php");
$html = file_get_html('http://www.google.com/');
// Find all images
foreach($html->find('img') as $element)
echo $element->src . '<br>';
// Find all links
foreach($html->find('a') as $element)
echo $element->href . '<br>';
?>