PHP Classes

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Nadir Latif  >  Link Searcher  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: initial file
Class: Link Searcher
Crawl Web pages to search for given text
Author: By
Last change: Initial commit
Date: 8 months ago
Size: 1,329 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Search Links</title>

<form name="search_links" method="post">
<h2 align="center">Search Links</h2>
<table width="446" border="0" align="center">
    <td width="91">Enter URL : </td>
    <td width="190"><input name="url" type="text" size="50" value="<?=@$_POST['url']?>"/></td>
    <td>Enter Regex : </td>
    <td><input name="regex" type="text" size="50" value="<?=@$_POST['regex']?>"/></td>
    <td>Enter Link to Search : </td>
    <td><input name="link_to_search" type="text" size="50" value="<?=@$_POST['link_to_search']?>"/></td>
    <td>Enter Search Depth : </td>
    <td><input name="depth" type="text" size="5" value="<?=@$_POST['depth']?>"/></td>
    <td colspan="2" align="center"><input name="submit" type="submit" />&nbsp;</td>

$search_links=new SearchLinks($_POST['url'],$_POST['depth'],$_POST['link_to_search'],$_POST['regex']);