<?php
require_once 'KeywordGenerator.php';
require_once 'summarizer.class.php';
set_time_limit(0);//useless in most of cases;
$kwObj =new summarizer( new KeywordGenerator);
$str=file_get_contents('https://www.phpclasses.org/blog/post/559-A-Better-Way-to-Find-Your-Next-Job.html');
echo ('<div style="width:800px">'.$kwObj->getSummary($str).$kwObj->getSummary($str,'paragraph').$kwObj->getSummary($str,'paragraph',false,true,null,true,4).$kwObj->getSummary($str,'',false,true,null,true,4).'<div>');
?>
|