Cgi

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dariophoenix
    New Member
    • Oct 2006
    • 34

    Cgi

    I'm not sure whether this is the right place to ask, but...
    Me and a group of partners are developing a search engine; the basic idea is that a C++ module is invoked from a Linux console before starting to process queries: that is the indexing module, and it prepares all the data and data structures necessary to rsolve queries. That's alright: the problem is that we cannot find a way to solve the queries using CGI (the thechnology recommended by our teachers...for its simplicity - liars!): the queries are inputted via a HTML form, which sends it to a server using CGI, and that server invokes the query solving program. The problem is that, with the CGI library we are using (cgivars, I think), the module is called everytime the "search" button in the HTML form is pressed, and that is too inefficient, since the data structures for the queries are loaded into memory every time. How can we go about this in the most simple way? We were advised to use sockets and multithreading, but honestly we don't have enough time for that... We are sure there is an easier way to do it using HTML and CGI... Any kind of advice will be welcome.
    Thanks in advance,
    Dario
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    What you are calling a problem is how the web works. This is normal. I don't completely understand what you are doing but you should google for AJAX to see if that is what you want.

    The option that you do not want to do is probably the best, however.

    Comment

    Working...