| ";
include("menufile.inc");
echo "
Free Advertising
Exchange - Reach thousands daily! Always free!
We provide free classified advertising, free categorized link exchange directory, and free banner tools!
Internet Marketing LinkAlizer makes it easy and fast for you to to find link exchange partners and increase traffic.
";
} else {
if ($keyword == "") {
echo "Invalid web page";
exit;
}
// Clear the search results
$LF = "
";
$noLinks = "";
// ---- Open the file data ----
$fh = fopen($myFile, 'r');
// get total file size
$length = filesize($myFile);
// ---- Read all the file data in and close the file ----
$theData = fread($fh, filesize($myFile));
fclose($fh);
$theData = str_replace("", "", $theData);
$theData = str_replace("", "", $theData);
$theData = str_replace(")", "", $theData);
$theData = str_replace('', '', $theData);
// Convert the file data to known lower case for searching purposes
$strData = strtolower($theData);
$start = "";
$linksfound = "0";
// Print the screen header
echo "Directory home - Fundraiser 1.0 home
$keyword1 Resources
";
$posint == 0;
$postart = $posint;
while ($posint < $length) {
// (lowercase data, "", found position)
$posend = strpos($strData, $end, $postart);
// Save the end position for next search
$posint = $posend;
if ($postart === false) {
$posint = $length + 10; // force end of while function
// End of file - normally leave here nothing found
if ($noLinks == "") {
echo "No links available.
"; }
include('footer.inc');
exit;
} else {
$found = substr($theData,$postart ,$posend - $postart);
$found1 = strtolower($found);
$postart = $posint;
$strlength = strlen($found1);
$pos = strpos($found1, '>');
if ($pos === false) {
echo "error - char > not found ";
include('footer.inc');
exit;
} else {
$count = substr_count($found1, $keyword);
if ($count == 0) {
// keyword not found
// echo "keyword not found ";
$posint = $posend;
} else {
// list the matching link
$linksfound = $linksfound + 1;
$result = "$found";
$result .= " $LF";
$noLinks = "$found";
echo $result;
}
} // end $pos === false
} // end $postart === false
} // end $posint < $length
} // end $uri == ""
?>
|