Re: Pleas Help. Need to extract html for a list of URLs
- From: "ZeldorBlat" <zeldorblat@xxxxxxxxx>
- Date: 24 May 2006 19:13:40 -0700
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
}
.
- References:
- Pleas Help. Need to extract html for a list of URLs
- From: Shani718
- Pleas Help. Need to extract html for a list of URLs
- Prev by Date: Pleas Help. Need to extract html for a list of URLs
- Next by Date: Re: regular expression problem
- Previous by thread: Pleas Help. Need to extract html for a list of URLs
- Index(es):