Otóż napisałem bardzo prosty skrypt pobierający content ze strony www i zapisuje go do pliku .csv oto skrypt:
CODE
<?php
include('simple_html_dom.php');
$html = file_get_html('PRZYKŁADOWY ADRES URL');
foreach($html->find('div.descript') as $e)
echo $e->innertext . '<br>';
$f=fopen("dane.csv","a");
fwrite($f,"$e->innertext\r\n");
fclose($f);
?>
Próbuje całosc wstawić do pętli ale mi nic nie wychodzi skrypt nie działa może ktos pomoże??
CODE
<?php
include('simple_html_dom.php');
$test=array(
N1009
);
foreach ($test as $x) {
$html = file_get_html('CZESC ADREsU WWW'$x);
foreach($html->find('div.descript') as $e)
echo $e->innertext . '<br>';
$f=fopen("dane.csv","a");
fwrite($f,"$e->innertext\r\n");
fclose($f);
}
?>
include('simple_html_dom.php');
$test=array(
N1009
);
foreach ($test as $x) {
$html = file_get_html('CZESC ADREsU WWW'$x);
foreach($html->find('div.descript') as $e)
echo $e->innertext . '<br>';
$f=fopen("dane.csv","a");
fwrite($f,"$e->innertext\r\n");
fclose($f);
}
?>