How To Display content only for Googlebot and Yahoo slurp PHP code

in

You may need some content display only for search engine bot

 
if(eregi("googlebot", $_SERVER['HTTP_USER_AGENT']) || eregi("slurp", $_SERVER['HTTP_USER_AGENT']))
                          {
                            //display content
                           }