Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Necro-File

Searchable HTML pages...?

This topic is 5613 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have been coding with HTML for quite some time now, and is the first computer language I was ever able to use skillfully. I recently had an idea for a searchable dictionary of sorts (not telling the whole thing, don''t want my idea stolen), but I never learned how to make search pages like Dictionary.com. If anyone can give me some help/tips/source code to familiarize myself with, or point me in the right direction, I would be most pleased.

Share this post


Link to post
Share on other sites
Advertisement
You can''t make them in HTML, as HTML is not a programming language.
Most search pages are written in Perl, PHP, or (rarely) compiled languages like C/C++.

Basicly you write a Perl/PHP/C program that writes the HTML of the search results page, based on the search string.

Share this post


Link to post
Share on other sites
They *can* be made in HTML, that is what META tags are for. Infoseek uses an HTML search structure system capable of searching any for these META tags, as do most other popular search engines (Google, Yahoo!, MSN, etc). I know little about Perl, but I thought it was an extension of JAVA, and I know that even JAVA incapable browsers can use search engines, and also that PHP hasn''t been around as long as most of these search engines have been.

I found a snippet of code on the web for an HTML search page, however, it didn''t give any explination of what the code actually means, so for one who is just learning how to do these functions, it was totally unusable.

Share this post


Link to post
Share on other sites
quote:
Original post by Necro-File
They *can* be made in HTML, .... more complete bullshit

That is so horribly wrong, it''s not funny. HTML merely describes a page layout, it CANNOT be used as a programming lanuage.

Also, Perl is not even remotely related to Java, and predates it by a good ten years. Perl is based on regex, and is fantastic for text processing. Java is more closely related to C, but still distinct.

Search engines that predate PHP/ASP used CGI programs (Common Gateway Interface). If you ever see ''cgi-bin'' or the like in a URL, that''s what it is.

The actual search page will be written in HTML, but it will use forms or similar to access a backend CGI program or PHP/ASP script. It seems to me that Google is written in Python, but I''m not sure.

I don''t know how to do what you''re trying, but Google is your friend. I just wanted to clear up some horribly false info.





"The sun is the same in a relative way,
but you''re older"
--Pink Floyd

Share this post


Link to post
Share on other sites
quote:
Original post by Necro-File
They *can* be made in HTML, that is what META tags are for.

No, they can't. HTML → HyperText Markup Language, ergo no
programmable features. Meta tags can be evaluated by scripts (e.g. written in Perl). I'd suggest you to read a little about
CGI and how how the Internet actually works. You will find that
*programming* languages (Perl, Java, ...) and things like XSL
can translate code (or XML in case of XSL) into browsable HTML
code on the server side, so the client only receives HTML code
and doesn't know about what's actually done on the server.

That might lead you to the assumption that you can do things
like searching in HTML (as you only see HTML when viewing the
page source), which is certainly not the case.

Nevertheless you can add some dynamic features like searching
to HTML code by using client-side scripting (e.g. javascript
or VisualBasic).

[edit]
ze_jackal was faster
[/edit]

[edited by - darookie on May 8, 2003 6:48:06 PM]

Share this post


Link to post
Share on other sites
Ok fine, lets say I believe you. Where can I find a tutorial on making a searchable database without PHP/MySQL (since my stupid web server doesn''t allow PHP scripting) and can run locally, without anything like a CGI-BIN folder or similar thing like some other Perl scripts I have seen?

Share this post


Link to post
Share on other sites
quote:
Original post by Necro-File
Ok fine, lets say I believe you. Where can I find a tutorial on making a searchable database without PHP/MySQL (since my stupid web server doesn''t allow PHP scripting) and can run locally, without anything like a CGI-BIN folder or similar thing like some other Perl scripts I have seen?

You can''t. Period. Give it up. Nothing doing.

Well, I suppose you could do it in javascript, but you''d have to have the entire index coded into the script, which means the page would be **huge**, and there''d be no reason to have a search script in the first place.

So, in conclusion, give it up.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
Well, after much diliberation and squabiling with you, somehwat lacking, gentlemen/women, I have found what I was looking for initially, and HTML searching *IS* possible. So goodday to you. I will post back once I have finished my database.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!