Re: Pleas Help. Need to extract html for a list of URLs




Shani718@xxxxxxxxx wrote:
I need the source code or html for a list of URLs that I have saved in
an excel spread***? I have no way of going baout this so i would
appreciate any help. Thank you

Save the spread*** in such a way that you have a text file with one
URL per line in the file. Then:

$filename = 'myfile.txt';
$urls = file($filename);

foreach($urls as $url) {
$html = file_get_contents($url);
//do something with the HTML from the URL
}

.


Quantcast