Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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:

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!

Sponsored Links
Entire Thread
Subject Posted By Posted
I need help with an online.php mod Dalantech 08/01/2005 6:16 PM
Re: I need help with an online.php mod Dalantech 08/01/2005 6:45 PM
Re: I need help with an online.php mod Dalantech 08/01/2005 7:10 PM
Re: I need help with an online.php mod Medar 08/01/2005 8:34 PM
Re: I need help with an online.php mod Dalantech 08/01/2005 8:43 PM
Re: I need help with an online.php mod DrChaos 08/03/2005 6:58 PM
Re: I need help with an online.php mod ScriptZ Man 08/04/2005 2:13 PM
Re: I need help with an online.php mod StanCA 08/04/2005 5:16 PM
Re: I need help with an online.php mod Dalantech 08/04/2005 8:07 PM
Re: I need help with an online.php mod StanCA 08/07/2005 4:39 AM
Re: I need help with an online.php mod Dalantech 08/08/2005 2:24 PM
Re: I need help with an online.php mod AllenAyres 08/11/2005 6:18 PM
Re: I need help with an online.php mod Dalantech 08/12/2005 5:03 PM
Re: I need help with an online.php mod JoshPet 08/14/2005 8:48 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)