shaman Posted August 14, 2008 Share Posted August 14, 2008 Hey all. I have tried to make my own site search with ASP. I have failed miserably.When I loop through the DB, the files get written at the end of the file before it. Therefore if one page checks with the search string, everything beneath it does.I cannot get the search engine to display a cutout of the page as the description where the text from the search string was found.MY POINT:I need help finding a tutorial that will help me make a sitesearch that scans a couple of files in a page, but not all of them. Then I need it to display the found information like google:|a url| Title |/a|Snippet of TextURLIf you can find one that does NOT require a COM component, I would be grateful since I am using godaddy and they do not let me register COM components.THANKSJAD Link to comment Share on other sites More sharing options...
justsomeguy Posted August 14, 2008 Share Posted August 14, 2008 What do you mean that it scans a couple files in a page, but not all of them? What files are in a page? Isn't a page a file? Link to comment Share on other sites More sharing options...
shaman Posted August 22, 2008 Author Share Posted August 22, 2008 oops I ment files in a FOLDER Link to comment Share on other sites More sharing options...
justsomeguy Posted August 22, 2008 Share Posted August 22, 2008 I'm not aware of any component that does all that. You can use the FileSystemObject to get a folder object for the folder you're looking for:http://www.w3schools.com/asp/met_getfolder.aspThe folder object has a files collection that contains the files in that folder:http://www.w3schools.com/asp/asp_ref_folder.aspIf you know the names of the files you want to look in you can just open them directly, if not then you can check the name of each item in the files object and decide if you want to open it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.