<?
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Type: application/octet-stream");
header("Content-Transfer-Encoding: binary");//forcive download
header("Content-Disposition: attachment; filename=seoreport.csv;");
foreach($HTTP_POST_VARS['url'] as $k=>$v)
{
echo "\n\n";
echo '"URL","TITLE","H1","DESCRIPTION","KEYWORDS","TEXT","TEXT LENGTH","2 WORD KEYWORDS"';
echo "\n".'"'.$v['url'].'","'.$v['title'].'","'.$v['h1'].'","'.$v['description'].'","'.$v['keywords'].'","'.$v['text'].'","'.$v['text_length'].'","'.$v['keywords_2'].'"';
$urls = explode(',',$v['urls']);
$anchors = explode(',',$v['anchors']);
$statucode = explode(',',$v['statucode']);
echo "\n\n".'"Other URLs","Anchors","Status Code"';
for($i = 0;$i < count($urls);$i++)
{
echo "\n".'"'.$urls[$i].'","'.$anchors[$i].'","'.$statucode[$i].'"';
}
}
?>
|