Hey, I tried out the method of adding a search to my site using php. That I THINK Shawn wrote. Basic info. I'm hosting the website on my desktop using IIS I have it DNS liked from http://fugpup.servebeer.com and http://fugpup.myftp.org I also have installed the latest version of PHP This is the error I get when trying the search Notice: Undefined index: start in c:\website\results.php on line 32 Notice: Undefined variable: line in c:\website\results.php on line 40 Add Search To Your Site Notice: Use of undefined constant end - assumed 'end' in c:\website\results.php on line 51 Notice: Undefined index: end in c:\website\results.php on line 51 Notice: Use of undefined constant start - assumed 'start' in c:\website\results.php on line 51 Notice: Undefined index: start in c:\website\results.php on line 51 Notice: Use of undefined constant results - assumed 'results' in c:\website\results.php on line 51 Notice: Use of undefined constant end - assumed 'end' in c:\website\results.php on line 51 Notice: Undefined index: end in c:\website\results.php on line 51 Notice: Use of undefined constant results - assumed 'results' in c:\website\results.php on line 53 Notice: Use of undefined constant results - assumed 'results' in c:\website\results.php on line 72 Estimated Total Results: 0 Notice: Use of undefined constant start - assumed 'start' in c:\website\results.php on line 78 Notice: Undefined index: start in c:\website\results.php on line 78 Notice: Use of undefined constant error - assumed 'error' in c:\website\results.php on line 79 Notice: Use of undefined constant error - assumed 'error' in c:\website\results.php on line 80 No Search Results Found
Okay, I updated the search script so your end doesn't have to "assume" the constants (damn Windows)... You can grab a new results.php from from: http://www.digitalpoint.com/tools/search/search.zip I don't think that will fix the "No Results Found" though. What is the exact URL you are using within the $site variable? - Shawn
Hey, sorry it took so long. Anyways, I tried that new file you gave me. Now my results are as follows Notice: Undefined index: start in c:\website\results.php on line 32 Notice: Undefined variable: line in c:\website\results.php on line 40 Add Search To Your Site Notice: Undefined index: end in c:\website\results.php on line 51 Notice: Undefined index: start in c:\website\results.php on line 51 Notice: Undefined index: end in c:\website\results.php on line 51 Estimated Total Results: 0 Notice: Undefined index: start in c:\website\results.php on line 78 No Search Results Found //The Exact URL I'm using in results.php is "fugpup.servebeer.com" //And I get the same results with "http://fugpup.servebeer.com"
Google does not know about your site, so it would not work: http://www.google.com/search?q=allinurl:fugpup.servebeer.com&ie=UTF-8&oe=UTF-8 - Shawn