Never tried what i'll write you, but it should work though!
for ($i=0;$i<2000;$i++)
{
$lines = join('', file(http://www.mysite.com/generator.php?id=$i));
// save $lines to a file.....
}
-elias
http://eassoft.cjb.net
"Kraa de Simon" <[EMAIL PROTECTED]> wrote in message
C1EBEEBBB842D411B4120000949A1F5875867A@wwmessd135">news:C1EBEEBBB842D411B4120000949A1F5875867A@wwmessd135...
> Hi,
>
> PHP newbie.
>
> Can anyone help me with the following?
>
> Pseudo code:
>
> for(i=1;i<2000;i++)
> {
> catch the output of
> http://www.mysite.com/kb.html?kbid= <? echo i ?>
> and put the html code in a text file called
> /www/kb/kbid <? echo i ?> .html
> }
>
> So the end result is 2000 html files on disk "extacted" from the http://
> address...
>
> Thanks...
>
> Met vriendelijke groet / With kind regards,
>
> Simon de Kraa
> ICL Logistic Systems
> mailto:[EMAIL PROTECTED]
>
> ---
>
> Microsoft Windows 2000 Professional SP 1, Progress 9.1b, Roundtable 9.1b
> SCO UnixWare 7.1.1, Progress 9.1a11
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]