PHP Classes

Parse Count: Search and count text occurrences in remote pages

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 109 This week: 1All time: 9,634 This week: 560Up
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: 2045130 in Brazil Brazil
Week rank: 411 Up35 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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:109
This week:1
All time:9,634
This week:560Up
User Comments (1)
Thats a good class ;-)
9 years ago (José Filipe Lopes Santos)
70%StarStarStarStar