Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • PeoplePods 0.9
  • Brackets Sprint 8
  • elFinder 2.0 RC1
  • BBClone 0.6.1
  • Twitter Follow Box...
  • Multilingual Press...
  • SimplePie 1.2.1
  • TinyTips 1.2
  • SWFUpload 2.2.0.1 ...
  • Head Cleaner 1.4.2.9
  • Home > Scripts > Snippets

    Searching external or internal webpages

    Download button


    Downloads: 343  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.8/5)
    17 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    php-scripts.com | More scripts
    www.php-scripts.com
    GPL - GNU Public License 

    Windows / Linux
    N/A
    PHP
    August 28th, 2006, 14:12 GMT
    C: \ Snippets

     Read user reviews (0)  Refer to a friend  Subscribe

    Searching external or internal webpages description

    Searching external or internal webpages is a script you can use to search internal and external pages.

    Nothing fancy needed for this beginning example. I have linked the box above to the script code I'm about to show you. Go ahead (no looking back and cheating now) and type a word or two you think was probably contained in that HTML page. All the script does is tell you whether or not it is there and how many times the search criteria appeared on each line of HTML. 

    each_line = fgetss($the_page, 255);
      if($type != "exact"
      {
          if(eregi($search_criteria, $each_line, $results))
         {
          // for each line where there is a match, increment a counter
          $size ;
         }
      }
       else
      {
           // ok let search using CASE SENSITIVE matches only
          if(ereg($search_criteria, $each_line, $results))
          {
             // for each line where there is a match, increment a counter
            $size ;
          }
      }



    TAGS:

    search externel webpages | search internal webpages | search engine | Searching | external | internal



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM