RE: [PHP-WIN] Re: PHP Search

From: Date: Fri, 17 Jan 2003 22:15:50 +0000
Subject: RE: [PHP-WIN] Re: PHP Search
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-17953@lists.php.net to get a copy of this message
You could also take lumps of HTML. Read it all into one string, the break it out into the tags. So everything inside <td>....</td> is brought out. If there's a colour change in there, that can be brought out too. Use simple reg exp's to pull out everything between tags. You could then categorise it in an array depending on what colour it's set too. If you using CSS, this could get complicated, as you'd have to check the class against whatever it's stored in the CSS. Not a simple task, but certainly would make an interesting project!!! If your going to make a database search, you could have a script to index and categorise each page first. Pull out text and stick in in the database with relations to what colour it is for instance. Would make your actual search script run a lot faster that's for sure... chris kranz fatcuban.com -----Original Message----- From: Radovan Radic [mailto:rasho@ving.co.yu] Sent: Friday, January 17, 2003 7:46 PM To: php-windows@lists.php.net Subject: [PHP-WIN] Re: PHP Search Either noone can read this message, or noone can help about it? Come on ppl give me some feedbacl "Radovan Radic" <rrasho@yahoo.com> wrote in message news:20030116170125.82914.qmail@web41013.mail.yahoo.com... > Hi all > > I got (i think) heavy task for my school project. I > hope someone can help > me. > Script needs to find key words (for example: computer, > science) > It should search in url or mail > Script should find words within meta-tags (i know how > to do it) and: > In the body of html (url or email) but only if the > words are different color > than the background! > BG could be table, tr, td, body... > Do i need to parse it, how can i obtain color of the > found text, is preg() > helpful...? > > Could anyone help me with the tips > > Thx, > Radovan > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#17953) next »