PHP Classes

File: testsummarizer7.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   PHP Lazy Copy Summary Text   testsummarizer7.php   Download  
File: testsummarizer7.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: 490 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);
$str=file_get_contents('https://www.phpclasses.org/blog/post/338-6-Common-PHP-Security-Issues-And-Their-Remedies.html');


echo (
'<div style="width:800px">'.$kwObj->getSummary($str).$kwObj->getSummary($str,'',false,true,null,true,4).$kwObj->getSummary($str,'paragraph',false,true,null,true,4).'<div>');
?>