PHP Classes

File: export

Recommend this page to a friend!
  Packages of J   Offline SEO Tools   export   Download  
File: export
Role: Auxiliary script
Content type: text/plain
Description: this will export your report
Class: Offline SEO Tools
Generate reports about Web pages
Author: By
Last change:
Date: 19 years ago
Size: 1,030 bytes
 

Contents

Class file image Download
<?
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].'"';
    }
}
?>