for($i = 0; $i < 10 ; $i++){
include 'Product'.$i.'.php';
$berg = file_get_contents($url);
$inputString = ($berg);
$fp = fopen ( 'NewProduct'.$i.'.php', "a");
fwrite( $fp, $inputString );
}
made all the urls in their own proucts$i.php file with the var $url in all of them.
then call the data from the url and store in Newproducts$i.php
works fine, thanks for your help