Weblog

String comparison in weblog

I've just added a little script to the one that does the search by title (aka permalink). So far if the title didnt exist in the database an error message was thrown. Now there's another step, so if it doesnt exist, we do a string comparison and order the results by coincidence percentages, provided they are greater than 50%. Thus, for instance, if you look for a post about Peter Gabriel but mistype it, you wont access directly but be shown a page with a list to select the most likely entry. Thanx Dan for helping me with some arrays problems. If you want more info on this technique post a comment on this entry.

Closed

Due to spam bullshit this weblog has been closed to comments, it was impossible to keep my blacklist script updated. You can still figure out my email and send me your message. Sorry.

Change preferences

Change preferences

License

Creative Commons 2001-2004. Sergi Meseguer

RSS syndication

rss (1, 2 ), xhtml, css, taw