<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Broswer sniffing e redirect]]></title><description><![CDATA[<p dir="auto">Ciao a tutti<br />
ho costruito questo script che mi dovrebbe permettere di inviare ad una pagina XY.hmt (che contiene un avviso) chi usa ie 6 o 7.<br />
Il problema è che lo script porta tutti i browser a quella pagina.. pure chrome e mozilla!</p>
<pre><code>&lt;?php $browser_id = strtolower($_SERVER['HTTP_USER_AGENT']);  
if (!substr_count($browser_id, "msie 6") or (!substr_count($browser_id, "msie 7"))) 
 {header("miosito.it/xy.html"); } 
else 
if (!substr_count($browser_id,  "mozilla/5.0") or (!substr_count($browser_id, "Chrome")))
{header ("location: miosito.it/sito");}

exit;


?&gt;
</code></pre>
<p dir="auto">Aiutino!?</p>
]]></description><link>https://dev.connect.gt/topic/121455/broswer-sniffing-e-redirect</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 03:53:06 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/121455.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Feb 2010 11:08:14 GMT</pubDate><ttl>60</ttl></channel></rss>