CodeCanyon

PHP Search Engine

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

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

PDF ’s are not working, but pdftotext is installed on my linux hosting

Please open search.php and go to about line 93 where you see this code:
@exec('pdftotext -v',$pdftotext,$return);
Please change it to the full path to pdftotext – generally this is /usr/bin/pdftotext but may differ on your system – please ask your hosting provider. eg:
@exec('/usr/bin/pdftotext -v',$pdftotext,$return);
ALSO change this on about line 552:
$command = 'pdftotext -nopgbrk -layout "'.$pdf_file.'" '.$pdf_text_file;
to this:
$command = '/usr/bin/pdftotext -nopgbrk -layout "'.$pdf_file.'" '.$pdf_text_file;
by
by
by
by
by