PHP Classes

File: testsummarizer9.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   PHP Lazy Copy Summary Text   testsummarizer9.php   Download  
File: testsummarizer9.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP Lazy Copy Summary Text
Parse text copy to extract most relevant phrases
Author: By
Last change:
Date: 6 years ago
Size: 513 bytes
 

Contents

Class file image Download
<?php
require_once 'KeywordGenerator.php';
require_once
'summarizer.class.php';
set_time_limit(0);//useless in most of cases;

$kwObj =new summarizer( new KeywordGenerator);
#Stefan Froelich Generators in PHP
$str=file_get_contents('https://www.sitepoint.com/generators-in-php/');
echo (
'<div style="width:800px">'.$kwObj->getSummary($str).$kwObj->getSummary($str,'paragraph').$kwObj->getSummary($str,'',false,true,null,true,4).$kwObj->getSummary($str,'paragraph',true,true,null,true,4).'<div>');
?>