NYCPHP Meetup

NYPHP.org

[nycphp-talk] hows it done

Paul Reinheimer preinheimer at gmail.com
Wed Jul 21 22:30:53 EDT 2004


When you get the http referer tag, it will include the full URL of the
page you came from. Google search result pages include your search
term in the URL.

So to highlight the google search terms on a page, grab that referer
tag, find the search terms, then highlight them on your page
(str_replace($search_term, "<span
class=highlight>$search_term</span>")).


i think that should work

paul


On Wed, 21 Jul 2004 14:28:08 -0400, Yury Rush <yury at heavenspa.com> wrote:
> folks..
> 
> i see websites that show results on a page based off of my search term.
> Example:
> 
> i go to google and type in " computer animation ".. i'll get results that
> will not be relavant to the website, but more so to my search term.. ..
> 
> i don;t have any examples off hand, but i hope i am making some sense..
> 
> lol
> regards
> yury
> 
> //www.flashgimp.com//
> 
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>



More information about the talk mailing list