<head> <title> PDF Search </title> </head> <body> <form name="input" action="PDFSearch.php" method="get"> Filename Keyword: <input type="text" name="pn"> <input type="submit" value="Search"> </form> </body> |
<html> <head> <title> Datasheet Search Results </title> </head> <body> <br> <?php $partNum = $_GET['pn']; print("<br>-- SEARCH RESULTS FOR: ".$partNum."--<br><br>"); exec("find /files/doc/pdf/ | grep -i ".$partNum."|grep -i pdf", $retval); if (!$retval) { printf("I dunt found you nun result, master. :-(<br>"); } else { foreach($retval as $line) { $link = $line; print("<a href=\"$link\">".$line."</a><br>"); } } ?> <br> -- END OF RESULTS -- <br> <br> <form name="input" action="PDFSearch.php" method="get"> Filename Keyword: <input type="text" name="pn"> <input type="submit" value="Search"> </form> <br> <br> <a href="PDFInput.html">Back</a> <br> <br> OR go see whats new at <a href="http://www.hackaday.com"> HACKADAY.COM </a> <br> </body> </html> |