php - Integrating Sphider search engine in to website -
i have sphider search engine , running on site having 2 problems.
i not clear on how set indexing results show up.
i trying take search.php file ,
include ('sphider/search.php');
in dashboard.php file located in root dir of site.
sphider @
root/sphider/search.php
but when include nothing shows up. if has insight on issues having appreciate it. yes have found online documentation here , there nothing clears me.
because sphider not installed in root directory might need update of path(s) within search.php eg. add '../sphider/' in path of can reference required php files etc. way can complicated , not worth it.
for site created simple flash search box uses url request of 'search.php?query=' + keywordvar + '&start=1&search=1&results=10' works great.
as3 example:
var keywordvar = searchtextbox01.text; var urlpart1 = 'http://www.yourwebsite.com/search.php?query='; var urlpart2 = '&start=1&search=1&results=10'; var mysearchlink = urlpart1 + keywordvar + urlpart2; mysearchbutton.addeventlistener(mouseevent.click,mysearchfunction); function mysearchfunction(e:event){navigatetourl(new urlrequest(mysearchlink)); }
in case use simple form uses 'get' search 'search.php' file , include header & footer in sphider's header & footer templates. or create own header & footers match requirements.
html example:
<div> <form action="sphider/search.php" method="get"> <input type="text" name="query" id="query" size="40" value=""> <input type="submit" value="search"> <input type="hidden" name="search" value="1"> </form> </div>
Comments
Post a Comment