
February 25th, 2003, 02:31 PM
|
|
Junior Member
|
|
Join Date: Feb 2003
Location: NJ, USA
Posts: 11
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Hi,
I have to speculate on how you will be searching HTML pages.
My best guess form your message is that you will be opening and reading the text of html files within your site, and looking for user supplied search words.
Assuming this is your plan, you will need to write a temporary version of your searched files out where the html of the searched pages is modified to contain extra tags around the user requested search terms.
Add to this that other people will be doing other searches at the same time and you will need to create multiple sets of "searched HTML pages", and not to mention that you will then have to delete the pages after the user is done, and you have a bit of a nightmare on your hands.
This capability is made easier by the build-in Search mechanism, and some ASP-like programming, but be advised, that this search mechanism is the a favorite hackers playground.
Another alternative is to read the text of your html messages and make a new, super page containing the actual text of the searched pages, but this depends on how far from your original vision you can stray.
Another way is to modify the HTML and temporarily store it into a database and the links would not actually be to an HTML file, but to the edited (link added) version of the HTML file stored in a database record.
Then again, I may have of mis-understood from the beginning, and your search is actually something else.
Ray Hogan
|