i am lookign for a free code that index the pages of a website
so when i searc for a keword on my websiite i get results (like google for example does(
does any 1 know of a good and free ready made scruipta?
thnaks in advance
peleg
indexing a webbsite
Moderator: General Moderators
Re: indexing a webbsite
Not sure off the top of my head if Google search on your own website is free, but I'd check it out. If the customizable package isn't, what you can do is make your search form submit to Google.pelegk1 wrote:i am lookign for a free code that index the pages of a website
so when i searc for a keword on my websiite i get results (like google for example does(
does any 1 know of a good and free ready made scruipta?
thnaks in advance
peleg
If you don't want to use a proprietary app/script, which shows good initiative, try figuring out something for your own website. Like a CronJob that indexes all new static pages every once in a while and saves the results in a relational database for speed. I would recommend a Regex that filters out the keywords & description of a page, much like what Google does. Optionally, you could of course search through the entire page for certain keywords, such as unique words, author info, etc. (check Wikipedia for the system Amazon.com uses, forgot the name).
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
yes i have a db
that holds the content ofthe pagespickle wrote:Is your website content stored in a database or in flat files?
Re: yes i have a db
Um.. ok. That doesn't really answer my question though. Indexing your site will take two drastically different routes depending on whether your website content is stored in individual files (such as individual .php files or .html files) or if its stored in a database.pelegk2 wrote:that holds the content ofthe pagespickle wrote:Is your website content stored in a database or in flat files?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
well pickle
some of it is in a databse but most of it in php files
Well, the database stuff can be easily searched by setting up a FULLTEXT index and searching with that.
Looking through the files might be more difficult. Try Googling or looking at Hotscripts. You're going to want a script that opens the directory, looks for each file, then indexes each of those files. The problem you're going to have is making the indexing script separate content from PHP code.
Looking through the files might be more difficult. Try Googling or looking at Hotscripts. You're going to want a script that opens the directory, looks for each file, then indexes each of those files. The problem you're going to have is making the indexing script separate content from PHP code.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.