PHP Search Engine

by dtbaker

  • Is it possible to hide parts of the page from getting indexed in search results?

    add this to about line 630 just before “remove contents of javascript”

    // remove custom are between <!-- hidesearch start --> and <!-- hidesearch end --> from html code
    $url_data['data'] = preg_replace('#<!--\s*hidesearch start\s*-->.*<!--\s*hidesearch end\s*-->#ismU','',$url_data['data']);
    
    then add
    <!-- hidesearch start -->
    and
    <!-- hidesearch end -->
    html comments around the part you wish to hide.

  • Create an iframe php search window on your website.

    Use this code:

    <form method="post" action="search.php?iframe=true" id="searchform" target="iframesearch">
    My Website: <input name="search" id="searchbox" value="test" type="text" /> <input name="go" value="Search" type="submit" />    
    </form>
    <iframe name="iframesearch" scrolling="auto" src="about:blank" id="iframesearch" frameborder="0" style="width:100%; height:500px;"></iframe>
    

    change search.php to point to wherever your search.php is located. style as necessary.

$10

Prepaid customers
pay just $8 - how? Prepay Your Account With our deposit system not only will purchasing be much faster, but we’ll also take $2 off the price! Click Here to Deposit Price

You must sign in or sign up to purchase this item.

12345 ( 30 ratings )

Purchase 179 purchases

File Types Included
CSS HTML PHP
Item Attributes
Created 28 February 10
PHP Version 5.x
MySQL Version N/A
PHP Framework N/A
Compatible Browsers Chrome 4, Chrome 5, FireFox 2, FireFox 3, IE6, IE7, IE8, Opera, Safari
PHP Files Included CSS, HTML, PHP