Search Engine in C

Thread Tools Search this Thread
Top Forums Programming Search Engine in C
# 8  
Old 09-02-2009
Hello pludi, neo,

Yes, if i access directly from the browser it shows the page ok with css attributes and everything, but obviously with the variables unset, for example:

'$&(LOGICAL_WORDS)' was not found.

When is htdig who shows me the page, it shows with the variables set, for example:

Search results for 'car crash'

But it doesn't load the css attributes at all.

I think i do not need to download pages since the search engine runs locally and only for local search, so they're always going to be "online" and available.

I've been reading the source code for htdig, and it's complex as hell, it uses dictionaries, word exceptions, a database, and more... i don't think i can write a search engine by my own at required time.

But i'm wondering something... could the problem be relationed to the directory paths?
i mean, htdig directory is in /srv/www/htdocs/htdig, and the search engine, htsearch, is in /srv/www/cgi-bin/htsearch.

Thanks a lot for your answers and please excuse my poor english.
This is driving me insane.
# 9  
Old 09-02-2009
Have you tried accessing just the .css file? It may not be where you think it is, URL-wise.
# 10  
Old 09-03-2009
Hey Corona688,
You always have an answer =)

When i access via URL to the following address:

I get the page without loading the attributes of the file.css, which is in the same directory than htsearch, but, and here's the interesting thing, when i access to the following address:

i get this:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Obviously, if i can't see it, i think htsearch neither, but, what's the thing then? what's wrong? the file.css has 777 permission. Or what's wrong with the cgi-bin directory?

# 11  
Old 09-03-2009
The cgi-bin directory contains executable scripts. It will assume it should execute files with executable permissions instead of just handing out their content. Which for a css file, isn't gonna work. If you insist, you might be able to get away with it by removing the executable bits from file.css but it really doesn't belong there.
# 12  
Old 09-03-2009
Hey Corona688, you're GOD.

I didn't know that about cgi-bin directory, knowing that, i just changed the path to the file.css in the htdig headers like this:

<... href="../file.css" ...>

I moved the file one directory back and now it works GREAT.

Thank you Corona688, Thank you VERY MUCH pludi, and neo.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. What is on Your Mind?

YouTube: Search Engine Optimization | How To Fix Soft 404 Errors and A.I. Tales from Google Search

Getting a bit more comfortable making quick YT videos in 4K, here is: Search Engine Optimization | How To Fix Soft 404 Errors and A.I. Tales from Google Search Console (0 Replies)
Discussion started by: Neo
0 Replies

2. Homework & Coursework Questions

About search engine in unix

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: How to create a search engine in unix using commands?...Atleast guidelines to craete this search engine...Thank... (1 Reply)
Discussion started by: Sindhu R
1 Replies

3. Shell Programming and Scripting

About search engine in unix

Hello, How to create a search engine in unix using commands?...Atleast guidelines to craete this search engine...Thank you in advance. (10 Replies)
Discussion started by: Sindhu R
10 Replies

4. Web Development

Search Engine

Hey guys. I have a quick question. My friends and I are working on a search engine project that will hopefully be up and running by December of 2011. Here's my concern. What programs should I use to create the search engine. Thanks guys! :b: (9 Replies)
Discussion started by: OussenkoSearch
9 Replies

5. Shell Programming and Scripting

Search Engine

How do you write a search engline to search offline scripts? (3 Replies)
Discussion started by: hawaiifiver
3 Replies
Login or Register to Ask a Question