What I want to do is search the user agent string (contained in $Agent) for yahoo and then change the $Agent string to an image link. I think that the forward slashes in the $Agent string are causing stristr to fail, but I don't know how to remove them. A search and replce mabey?
Here is my code:
if (stristr($Agent, 'yahoo') !== false) {<br /> $Agent = "<img border=\"0\" align=\"middle\" src=\"{$config['imageurl']}/yahoo.gif\" alt=\"Yahoo bot eating all our bandwidth\" />;<br />//}
I'll try a search and replace first and see if that makes a difference -but any ideas are welcome!