<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>All About PHP</title>
	<atom:link href="http://phptipsweb.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://phptipsweb.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 13 Dec 2009 18:08:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='phptipsweb.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>All About PHP</title>
		<link>http://phptipsweb.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://phptipsweb.wordpress.com/osd.xml" title="All About PHP" />
	<atom:link rel='hub' href='http://phptipsweb.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Get filtered http user agent</title>
		<link>http://phptipsweb.wordpress.com/2009/12/13/get-filtered-http-user-agent/</link>
		<comments>http://phptipsweb.wordpress.com/2009/12/13/get-filtered-http-user-agent/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 18:03:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[globals]]></category>

		<guid isPermaLink="false">http://phptipsweb.wordpress.com/?p=3</guid>
		<description><![CDATA[When you want to save your browser information into the database then can filter your http user agent using a simple trick. Cause usually this $_SERVER['HTTP_USER_AGENT'] returns long big line of your user agent. If you want to get rid of big line and want to make it just like your browser name, you can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phptipsweb.wordpress.com&amp;blog=10938495&amp;post=3&amp;subd=phptipsweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you want to save your browser information into the database then can filter your http user agent using a simple trick. Cause usually this <code>$_SERVER['HTTP_USER_AGENT'] </code> returns long big line of your user agent. If you want to get rid of big line and want to make it just like your browser name, you can use the following piece of code to filter it.<br />
<br />
<code><br />
$borwserList = array('Mozilla','IE','Chrome','Safari');<br />
foreach($borwserList as $thisBrowser)<br />
{<br />
   if(preg_match("/$thisBrowser/",$_SERVER['HTTP_USER_AGENT']))<br />
   {<br />
      $data['web_browser'] = $thisBrowser;<br />
   }<br />
}<br />
</code></p>
<p>This is the fairly simple php code in this planet earth <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . All this code is doing is filtering the user agent. You will get your required browser name in your <code>$data['web_browser']</code>.</p>
<p>Now you can use this based on your requirements. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phptipsweb.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phptipsweb.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phptipsweb.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phptipsweb.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phptipsweb.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phptipsweb.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phptipsweb.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phptipsweb.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phptipsweb.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phptipsweb.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phptipsweb.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phptipsweb.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phptipsweb.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phptipsweb.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phptipsweb.wordpress.com&amp;blog=10938495&amp;post=3&amp;subd=phptipsweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phptipsweb.wordpress.com/2009/12/13/get-filtered-http-user-agent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/235c656a6e5f8f6f801ebcc3793a1286?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">beroza</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://phptipsweb.wordpress.com/2009/12/13/hello-world/</link>
		<comments>http://phptipsweb.wordpress.com/2009/12/13/hello-world/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 17:37:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phptipsweb.wordpress.com&amp;blog=10938495&amp;post=1&amp;subd=phptipsweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phptipsweb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phptipsweb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phptipsweb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phptipsweb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phptipsweb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phptipsweb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phptipsweb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phptipsweb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phptipsweb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phptipsweb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phptipsweb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phptipsweb.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phptipsweb.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phptipsweb.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phptipsweb.wordpress.com&amp;blog=10938495&amp;post=1&amp;subd=phptipsweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phptipsweb.wordpress.com/2009/12/13/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/235c656a6e5f8f6f801ebcc3793a1286?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">beroza</media:title>
		</media:content>
	</item>
	</channel>
</rss>
