$url[0] = "http://www.phpbuilder.com/board/";
$url[1] = "http://www.phpbuilder.com/";
foreach ($url as $path){
$var[] = str_replace("src=\"","src=\"".$path,join('',file($path)));
};
$i = 1;
foreach ($var as $string){
$filename = ceil(gmmktime() / 2);
$path = "/home/sites/foobar.com/web/uploads";
$filename = "$path/$filename$i.html";
$fp = fopen($filename,"w+");
if ($fp){
if (flock($fp, LOCK_EX)){
fputs($fp,$string);
flock($fp, LOCK_UN);
};
};
fclose($fp);
$i++;
};
ok so that was easy, but now i need to attach that html file to an email.
there is actually two / three maybe four files to attach.