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:[EMAIL PROTECTED]] 
Sent: Friday, January 17, 2003 7:46 PM
To: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to