PHP Classes

Parse Count: Search and count text occurrences in remote pages

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 109 All time: 9,659 This week: 206Up
Version License PHP version Categories
parse-count 1.0Freeware5PHP 5, Searching, Web services
Description 

Author

This class can search and count text occurrences in remote pages.

It can retrieve the contents of a remote page from a given URL into a local temporary file.

The class search for given words in the page and returns the number of occurrences.

Picture of Thiago Abrantes
  Performance   Level  
Name: Thiago Abrantes <contact>
Classes: 3 packages by
Country: Brazil Brazil
Age: 39
All time rank: 2037130 in Brazil Brazil
Week rank: 206 Up18 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

Example

<form name="form1" method="post" action="">
  <table width="762" border="1">
    <tr>
      <td width="145">Valid URL:</td>
      <td width="601"><label for="textfield"></label>
      <input name="url" type="text" id="textfield" size="80"></td>
    </tr>
    <tr>
      <td>Some Word:</td>
      <td><input type="text" name="word" id="textfield2"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="right"><input type="submit" name="send" id="button" value="Submit"></td>
    </tr>
  </table>
</form>
<?php
include "testparse.php";
if(isset(
$_POST['send'])){
$counter = new ParseWeb($_POST['url'],$_POST['word']);
$counter->CountOcurrences();

}
?>


  Files folder image Files (2)  
File Role Description
Plain text file example.php Example How to use the class
Plain text file testparse.php Class Class to parse and search occurrences

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:109
This week:0
All time:9,659
This week:206Up
User Comments (1)
Thats a good class ;-)
9 years ago (José Filipe Lopes Santos)
70%StarStarStarStar