Jump to content

Recommended Posts

Posted

Now, I'll take you to the readme page so you have an idea as to what I'm working with. At first sight, it looks so ridiculously easy. That is why I am so puzzled about these problems I am having.

PHP ReadMe

Step one can be skipped, so I did.

Step two I think is where the problems are occurring. (And I have no idea why.)

 

I put the entire web site into a file that is located at c:\Abba Web Page

And, I put the script I downloaded for this searcher into a directory called searchsite under public_html.

 

Perhaps I am missing something mundane, but if you wouldn't mind, could someone please point out the obvious to me? :(

 

Here's the operative lines of my code, which I altered after reading the readme.

 

>// Variables

// Set your username and password. Leave blank if you don't want any protection.
      $user = "UserName";
      $pass = "Password";

// The full system path to the files you wish to index. DO NOT include trailing slash.
      $file_root = "c:\Abba Web Page";

// The URL equivilent of the above. DO NOT include trailing slash.
      $http_root = "http://abbainc.biz";

// The full system path to the index file.
      $index_file = "c:\Abba Web Page\sitesearch\search_index.dat";

// The full system path to the file of words to exclude.
      $exclude_words = "c:\Abba Web Page\sitesearch\exclude_words.txt";

// The full system path to the file of files to exclude.
      $exclude_files = "c:\Abba Web Page\sitesearch\exclude_files.txt";

 

I'm up for any and all ideas. And it could be that I simply misunderstood the directions... if so, please point that out. Thanks!

Posted

I believe you don't use c:\ format as it points to your hard drive.

 

 

 

$file_root = "/home/user/public_html/Abba Web Page";

 

You may want to consider closing up the white spaces in your filename as well

 

Abba_Web_Page, AbbaWebPage, etc.

 

-Ty

Posted

>// The full system path to the files you wish to index. DO NOT include trailing slash.
      $file_root = "/home/user/public_html/AbbaWebPage";

// The URL equivilent of the above. DO NOT include trailing slash.
      $http_root = "http://abbainc.biz";

// The full system path to the index file.
      $index_file = "/home/user/public_html/AbbaWebPage/sitesearch/search_index.dat";

// The full system path to the file of words to exclude.
      $exclude_words = "/home/user/public_html/AbbaWebPage/sitesearch/exclude_words.txt";

// The full system path to the file of files to exclude.
      $exclude_files = "/home/user/public_html/AbbaWebPage/sitesearch/exclude_files.txt";

 

That is what I have changed everything to. I deleted the spaces as you suggested, but it still isn't working when I go through the set up.

Posted

"/home/user/public_html/AbbaWebPage";

 

You need to change user to whatever user name was assigned to you when you opened your account. This info would be in your setup email from TCH.

 

Seems like an ok script. I tried it out on a site. Just be careful about the text at the top of each web page that you index. For example - I have (had) a PayPal link with about 4 lines of text begging for donations. So when I got search results the description of each and every page was the "send me money" blurb and not the first 4 lines of page content

 

-Ty.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...