<?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>Hire PHP Web Developer</title>
	<atom:link href="http://vasimpadhiyar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vasimpadhiyar.wordpress.com</link>
	<description>HIRE PHP DEVELOPER</description>
	<lastBuildDate>Sat, 08 Jan 2011 14:24:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vasimpadhiyar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Hire PHP Web Developer</title>
		<link>http://vasimpadhiyar.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vasimpadhiyar.wordpress.com/osd.xml" title="Hire PHP Web Developer" />
	<atom:link rel='hub' href='http://vasimpadhiyar.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Convert array to Json format in php</title>
		<link>http://vasimpadhiyar.wordpress.com/2011/01/08/convert-array-to-json-format-in-php/</link>
		<comments>http://vasimpadhiyar.wordpress.com/2011/01/08/convert-array-to-json-format-in-php/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 14:24:33 +0000</pubDate>
		<dc:creator>vasimpadhiyar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vasimpadhiyar.wordpress.com/?p=49</guid>
		<description><![CDATA[$ads_array[] =  array( &#8220;font_weight&#8221; =&#62; &#8220;bold&#8221;, &#8220;text_decoration&#8221; =&#62; &#8220;none&#8221;, &#8220;color&#8221; =&#62; &#8220;BLACK&#8221; ); json_encode($ads_array); function json_encode($a=false) { if (is_null($a)) return &#8216;null&#8217;; if ($a === false) return &#8216;false&#8217;; if ($a === true) return &#8216;true&#8217;; if (is_scalar($a)) { if (is_float($a)) { // Always use &#8220;.&#8221; for floats. return floatval(str_replace(&#8220;,&#8221;, &#8220;.&#8221;, strval($a))); } if (is_string($a)) { static $jsonReplaces [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=49&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>$ads_array[] =  array(<br />
&#8220;font_weight&#8221; =&gt; &#8220;bold&#8221;,<br />
&#8220;text_decoration&#8221; =&gt; &#8220;none&#8221;,<br />
&#8220;color&#8221; =&gt; &#8220;BLACK&#8221;<br />
);</p>
<p>json_encode($ads_array);</p>
<p>function json_encode($a=false)<br />
{<br />
if (is_null($a)) return &#8216;null&#8217;;<br />
if ($a === false) return &#8216;false&#8217;;<br />
if ($a === true) return &#8216;true&#8217;;<br />
if (is_scalar($a))<br />
{<br />
if (is_float($a))<br />
{<br />
// Always use &#8220;.&#8221; for floats.<br />
return floatval(str_replace(&#8220;,&#8221;, &#8220;.&#8221;, strval($a)));<br />
}</p>
<p>if (is_string($a))<br />
{<br />
static $jsonReplaces = array(array(&#8220;\\&#8221;, &#8220;/&#8221;, &#8220;\n&#8221;, &#8220;\t&#8221;, &#8220;\r&#8221;, &#8220;\b&#8221;, &#8220;\f&#8221;, &#8216;&#8221;&#8216;), array(&#8216;\\\\&#8217;, &#8216;\\/&#8217;, &#8216;\\n&#8217;, &#8216;\\t&#8217;, &#8216;\\r&#8217;, &#8216;\\b&#8217;, &#8216;\\f&#8217;, &#8216;\&#8221;&#8216;));<br />
return &#8216;&#8221;&#8216; . str_replace($jsonReplaces[0], $jsonReplaces[1], $a) . &#8216;&#8221;&#8216;;<br />
}<br />
else<br />
return $a;<br />
}<br />
$isList = true;<br />
for ($i = 0, reset($a); $i &lt; count($a); $i++, next($a))<br />
{<br />
if (key($a) !== $i)<br />
{<br />
$isList = false;<br />
break;<br />
}<br />
}<br />
$result = array();<br />
if ($isList)<br />
{<br />
foreach ($a as $v) $result[] = json_encode($v);<br />
return &#8216;[' . join(',', $result) . ']&#8216;;<br />
}<br />
else<br />
{<br />
foreach ($a as $k =&gt; $v) $result[] = json_encode($k).&#8217;:&#8217;.json_encode($v);<br />
return &#8216;{&#8216; . join(&#8216;,&#8217;, $result) . &#8216;}&#8217;;<br />
}<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vasimpadhiyar.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vasimpadhiyar.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vasimpadhiyar.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vasimpadhiyar.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vasimpadhiyar.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vasimpadhiyar.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vasimpadhiyar.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vasimpadhiyar.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vasimpadhiyar.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vasimpadhiyar.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vasimpadhiyar.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vasimpadhiyar.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vasimpadhiyar.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vasimpadhiyar.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=49&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vasimpadhiyar.wordpress.com/2011/01/08/convert-array-to-json-format-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24b9351dbdc713a954cca8b09637495a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vasimpadhiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Get User Total Tweet in php from username</title>
		<link>http://vasimpadhiyar.wordpress.com/2010/12/31/get-user-total-tweet-in-php-from-username/</link>
		<comments>http://vasimpadhiyar.wordpress.com/2010/12/31/get-user-total-tweet-in-php-from-username/#comments</comments>
		<pubDate>Fri, 31 Dec 2010 11:11:42 +0000</pubDate>
		<dc:creator>vasimpadhiyar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vasimpadhiyar.wordpress.com/?p=45</guid>
		<description><![CDATA[$username = &#8216;vasimpadhiyar&#8217;; echo &#8220;Total Tweets = &#8220;.count(user_tweets(&#8220;http://twitter.com/$username&#8221;)); function user_tweets($url) { $tweets = array(); $username = substr(strrchr($url, &#8220;/&#8221;), 1); $page = file_get_contents($url); $regexp = &#8216;/&#60;link\srel=\&#8221;alternate\&#8221;\shref=\&#8221;(.*)\&#8221;\stitle=\&#8221;(.*)\&#8221;\stype=\&#8221;application\/rss\+xml\&#8221;\s\/&#62;/i&#8217;; preg_match($regexp,$page,$matches); $rss_feed = $matches[1];    // http://twitter.com/statuses/user_timeline/95190471.rss $xml = file_get_contents($rss_feed); $x = new SimpleXmlElement($xml); $tweet = $x-&#62;channel-&#62;item; for($i=0; $i&#60;count($tweet); $i++) { $title = preg_replace(&#8220;/$username:/&#8221;,&#8221;",$tweet[$i]-&#62;title); $description = preg_replace(&#8220;/$username:/&#8221;,&#8221;",$tweet[$i]-&#62;description); $url = preg_replace(&#8220;/$username:/&#8221;,&#8221;",$tweet[$i]-&#62;link); $tweets[] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=45&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>$username = &#8216;vasimpadhiyar&#8217;;<br />
echo &#8220;Total Tweets = &#8220;.count(user_tweets(&#8220;http://twitter.com/$username&#8221;));</p>
<p>function user_tweets($url)<br />
{<br />
$tweets = array();</p>
<p>$username = substr(strrchr($url, &#8220;/&#8221;), 1);</p>
<p>$page = file_get_contents($url);</p>
<p>$regexp = &#8216;/&lt;link\srel=\&#8221;alternate\&#8221;\shref=\&#8221;(.*)\&#8221;\stitle=\&#8221;(.*)\&#8221;\stype=\&#8221;application\/rss\+xml\&#8221;\s\/&gt;/i&#8217;;</p>
<p>preg_match($regexp,$page,$matches);</p>
<p>$rss_feed = $matches[1];    // http://twitter.com/statuses/user_timeline/95190471.rss</p>
<p>$xml = file_get_contents($rss_feed);</p>
<p>$x = new SimpleXmlElement($xml);</p>
<p>$tweet = $x-&gt;channel-&gt;item;</p>
<p>for($i=0; $i&lt;count($tweet); $i++)<br />
{<br />
$title = preg_replace(&#8220;/$username:/&#8221;,&#8221;",$tweet[$i]-&gt;title);<br />
$description = preg_replace(&#8220;/$username:/&#8221;,&#8221;",$tweet[$i]-&gt;description);<br />
$url = preg_replace(&#8220;/$username:/&#8221;,&#8221;",$tweet[$i]-&gt;link);</p>
<p>$tweets[] = array(&#8216;title&#8217;=&gt;$title, &#8216;desc&#8217;=&gt;$description, &#8216;url&#8217;=&gt;$url, &#8216;date&#8217;=&gt;strtotime($tweet[$i]-&gt;pubDate));<br />
}</p>
<p>return $tweets;<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vasimpadhiyar.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vasimpadhiyar.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vasimpadhiyar.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vasimpadhiyar.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vasimpadhiyar.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vasimpadhiyar.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vasimpadhiyar.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vasimpadhiyar.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vasimpadhiyar.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vasimpadhiyar.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vasimpadhiyar.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vasimpadhiyar.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vasimpadhiyar.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vasimpadhiyar.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=45&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vasimpadhiyar.wordpress.com/2010/12/31/get-user-total-tweet-in-php-from-username/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24b9351dbdc713a954cca8b09637495a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vasimpadhiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Youtube Thumbnail Image From url PHP</title>
		<link>http://vasimpadhiyar.wordpress.com/2010/12/30/get-youtube-thumbnail-image-from-url-php/</link>
		<comments>http://vasimpadhiyar.wordpress.com/2010/12/30/get-youtube-thumbnail-image-from-url-php/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 11:53:12 +0000</pubDate>
		<dc:creator>vasimpadhiyar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vasimpadhiyar.wordpress.com/?p=33</guid>
		<description><![CDATA[$id = youtube_thumb_image(&#8216;http://www.youtube.com/watch?v=ZaI2IlHwmgQ&#38;feature=channel&#8217;); echo &#8216;&#60;img src=&#8221;http://i1.ytimg.com/vi/&#8217; . $id. &#8216;/default.jpg&#8221; alt=&#8221;Preview Not Available&#8221; /&#62;&#8217;; function youtube_thumb_image($youtube) { // Created By : iamvasim@gmail.com // Blog : http://vasimpadhiyar.wordpress.com // FaceBook : PHP Script $match = explode(&#8216;v=&#8217;,$youtube); $id = $match[1]; if($match[1]!=&#8221;") { $match = explode(&#8216;&#38;&#8217;,$match[1]); $id = $match[0]; } return $id; }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=33&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>$id = youtube_thumb_image(&#8216;http://www.youtube.com/watch?v=ZaI2IlHwmgQ&amp;feature=channel&#8217;);</p>
<p>echo &#8216;&lt;img src=&#8221;http://i1.ytimg.com/vi/&#8217; . $id. &#8216;/default.jpg&#8221; alt=&#8221;Preview Not Available&#8221; /&gt;&#8217;;</p>
<p>function youtube_thumb_image($youtube)<br />
{<br />
// Created By : iamvasim@gmail.com<br />
// Blog       : http://vasimpadhiyar.wordpress.com<br />
// FaceBook   : PHP Script</p>
<p>$match = explode(&#8216;v=&#8217;,$youtube);<br />
$id = $match[1];<br />
if($match[1]!=&#8221;")<br />
{<br />
$match = explode(&#8216;&amp;&#8217;,$match[1]);<br />
$id = $match[0];<br />
}</p>
<p>return $id;<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vasimpadhiyar.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vasimpadhiyar.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vasimpadhiyar.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vasimpadhiyar.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vasimpadhiyar.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vasimpadhiyar.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vasimpadhiyar.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vasimpadhiyar.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vasimpadhiyar.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vasimpadhiyar.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vasimpadhiyar.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vasimpadhiyar.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vasimpadhiyar.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vasimpadhiyar.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=33&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vasimpadhiyar.wordpress.com/2010/12/30/get-youtube-thumbnail-image-from-url-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24b9351dbdc713a954cca8b09637495a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vasimpadhiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Search whole word from database value in mysql</title>
		<link>http://vasimpadhiyar.wordpress.com/2010/12/20/search-whole-word-from-database-value-in-mysql/</link>
		<comments>http://vasimpadhiyar.wordpress.com/2010/12/20/search-whole-word-from-database-value-in-mysql/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 15:28:05 +0000</pubDate>
		<dc:creator>vasimpadhiyar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vasimpadhiyar.wordpress.com/?p=29</guid>
		<description><![CDATA[Following example will retrive all the records from table that have 'music' word in emp_info colomn. Query will avoid emp_id = 4 bcoz its not has 'music' only. its 'musics' in value. There are 3 ways, you can get result from databse. Lets assume we have following table : table : emp_info CREATE TABLE emp_info [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=29&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
Following example will retrive all the records from table that have 'music' word in emp_info colomn.
Query will avoid emp_id = 4 bcoz its not has 'music' only. its 'musics' in value.

There are 3 ways, you can get result from databse.

Lets assume we have following table :

table : emp_info

CREATE TABLE
  emp_info (
  emp_id  INT UNSIGNED NOT NULL PRIMARY KEY,
  emp_name VARCHAR(200),
  emp_info TEXT,
  FULLTEXT (emp_info)
   );

Insert following rows into table :

emp_id  emp_name emp_info
=============================================================================
1  Rocky  i love to sing a song
2  Andy  i want to become a singer
3  Jackson  i am music lover
4  Neil  i don't like musics
5  Williem  sometime i enjoy music
6  Helly  i love music all day 

query1 =&gt; SELECT emp_id FROM emp_info WHERE  emp_info like '% music %'
query2 =&gt; SELECT emp_id FROM emp_info WHERE  MATCH (emp_info) AGAINST('music')
query3 =&gt; SELECT emp_id FROM emp_info WHERE  emp_info REGEXP '[[::]]' =1 

Output of all query:
emp_id :
3
5
6
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vasimpadhiyar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vasimpadhiyar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vasimpadhiyar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vasimpadhiyar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vasimpadhiyar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vasimpadhiyar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vasimpadhiyar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vasimpadhiyar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vasimpadhiyar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vasimpadhiyar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vasimpadhiyar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vasimpadhiyar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vasimpadhiyar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vasimpadhiyar.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=29&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vasimpadhiyar.wordpress.com/2010/12/20/search-whole-word-from-database-value-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24b9351dbdc713a954cca8b09637495a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vasimpadhiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Find all links from webpage in php</title>
		<link>http://vasimpadhiyar.wordpress.com/2010/12/20/find-all-links-from-webpage-in-php/</link>
		<comments>http://vasimpadhiyar.wordpress.com/2010/12/20/find-all-links-from-webpage-in-php/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 15:26:47 +0000</pubDate>
		<dc:creator>vasimpadhiyar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vasimpadhiyar.wordpress.com/?p=27</guid>
		<description><![CDATA[$page = @file_get_contents("http://www.somewebpage.com/somepage.html"); $reg_expr = '/&#60;a\s[^&#62;]*href=(\"??)([^\" &#62;]*?)\\1[^&#62;]*&#62;(.*)&#60;\/a&#62;/siU'; preg_match_all($reg_expr,$page,$matches);<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=27&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>$page = @file_get_contents("http://www.somewebpage.com/somepage.html");
$reg_expr = '/&lt;a\s[^&gt;]*href=(\"??)([^\" &gt;]*?)\\1[^&gt;]*&gt;(.*)&lt;\/a&gt;/siU';
preg_match_all($reg_expr,$page,$matches);
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vasimpadhiyar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vasimpadhiyar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vasimpadhiyar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vasimpadhiyar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vasimpadhiyar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vasimpadhiyar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vasimpadhiyar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vasimpadhiyar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vasimpadhiyar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vasimpadhiyar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vasimpadhiyar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vasimpadhiyar.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vasimpadhiyar.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vasimpadhiyar.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=27&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vasimpadhiyar.wordpress.com/2010/12/20/find-all-links-from-webpage-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24b9351dbdc713a954cca8b09637495a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vasimpadhiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Free sandbox paypal script in php</title>
		<link>http://vasimpadhiyar.wordpress.com/2010/12/20/free-sandbox-paypal-script-in-php/</link>
		<comments>http://vasimpadhiyar.wordpress.com/2010/12/20/free-sandbox-paypal-script-in-php/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 15:24:23 +0000</pubDate>
		<dc:creator>vasimpadhiyar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vasimpadhiyar.wordpress.com/?p=25</guid>
		<description><![CDATA[// First create 3 files in root of site called // paypal_return.php,cancel_return.php,notify_return.php // Replace business@domain.com with your test business account email id // After Payment Complete , Paypal will return you Token in request // on paypal_return.php //Check This Token Transation Record on paypal server as below $order_status = check_paypal($_REQUEST['tx']); if($order_status==&#8217;SUCCESS&#8217;) { // Update Database [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=25&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>// First create 3 files in root of site called<br />
// paypal_return.php,cancel_return.php,notify_return.php<br />
// Replace business@domain.com with your test business account email id</p>
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" name="frm" method="post">
</form>
<p>// After Payment Complete , Paypal will return you Token in request<br />
// on paypal_return.php<br />
//Check This Token Transation Record on paypal server as below</p>
<p>$order_status = check_paypal($_REQUEST['tx']);</p>
<p>if($order_status==&#8217;SUCCESS&#8217;)<br />
{<br />
// Update Database and return to main page<br />
}<br />
else<br />
{<br />
// Error msg<br />
}</p>
<p>// Replace $auth_token with your appropriate token<br />
function check_paypal($paypal_tx)<br />
{<br />
$status = &#8220;FAIL&#8221;;</p>
<p>$req = &#8216;cmd=_notify-synch&#8217;;</p>
<p>$tx_token = $paypal_tx;</p>
<p>$auth_token = &#8220;03suYLK9KVmKHZMETOKW4Ad0g2uDM7R2mS0-IUd4B2tFr6E0SlDZRUVSX-G&#8221;;</p>
<p>$req .= &#8220;&amp;tx=$tx_token&amp;at=$auth_token&#8221;;</p>
<p>$header .= &#8220;POST /cgi-bin/webscr HTTP/1.0\r\n&#8221;;<br />
$header .= &#8220;Content-Type: application/x-www-form-urlencoded\r\n&#8221;;<br />
$header .= &#8220;Content-Length: &#8221; . strlen($req) . &#8220;\r\n\r\n&#8221;;<br />
$fp = fsockopen (&#8216;www.sandbox.paypal.com&#8217;, 80, $errno, $errstr, 30);</p>
<p>if (!$fp)<br />
{<br />
$status = &#8220;FAIL&#8221;;<br />
}<br />
else<br />
{<br />
fputs ($fp, $header . $req);</p>
<p>$res = &#8221;;<br />
$headerdone = false;<br />
while (!feof($fp))<br />
{<br />
$line = fgets ($fp, 1024);</p>
<p>if (strcmp($line, &#8220;\r\n&#8221;) == 0)<br />
{<br />
$headerdone = true;<br />
}<br />
else if ($headerdone)<br />
{<br />
$res .= $line;<br />
}<br />
}</p>
<p>$lines = explode(&#8220;\n&#8221;, $res);</p>
<p>$keyarray = array();</p>
<p>if (strcmp ($lines[0], &#8220;SUCCESS&#8221;) == 0)<br />
{<br />
$status = &#8220;SUCCESS&#8221;;<br />
}<br />
else if (strcmp ($lines[0], &#8220;FAIL&#8221;) == 0)<br />
{<br />
$status = &#8220;FAIL&#8221;;</p>
<p>}</p>
<p>}</p>
<p>fclose ($fp);</p>
<p>return $status;<br />
} </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vasimpadhiyar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vasimpadhiyar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vasimpadhiyar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vasimpadhiyar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vasimpadhiyar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vasimpadhiyar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vasimpadhiyar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vasimpadhiyar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vasimpadhiyar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vasimpadhiyar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vasimpadhiyar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vasimpadhiyar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vasimpadhiyar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vasimpadhiyar.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=25&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vasimpadhiyar.wordpress.com/2010/12/20/free-sandbox-paypal-script-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24b9351dbdc713a954cca8b09637495a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vasimpadhiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Create CSV file from array in php</title>
		<link>http://vasimpadhiyar.wordpress.com/2010/12/20/create-csv-file-from-array-in-php/</link>
		<comments>http://vasimpadhiyar.wordpress.com/2010/12/20/create-csv-file-from-array-in-php/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 15:13:15 +0000</pubDate>
		<dc:creator>vasimpadhiyar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vasimpadhiyar.wordpress.com/?p=23</guid>
		<description><![CDATA[$list = array (&#8216;aaa,bbb,ccc,dddd&#8217;,&#8217;123,456,789&#8242;,&#8217;&#8221;aaa&#8221;,&#8221;bbb&#8221;&#8216;); $fp = fopen(&#8216;file1.csv&#8217;, &#8216;w&#8217;); foreach ($list as $line) { fputcsv($fp, split(&#8216;,&#8217;, $line)); } fclose($fp);<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=23&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>$list = array (&#8216;aaa,bbb,ccc,dddd&#8217;,&#8217;123,456,789&#8242;,&#8217;&#8221;aaa&#8221;,&#8221;bbb&#8221;&#8216;);</p>
<p>$fp = fopen(&#8216;file1.csv&#8217;, &#8216;w&#8217;);</p>
<p>foreach ($list as $line) {<br />
    fputcsv($fp, split(&#8216;,&#8217;, $line));<br />
}</p>
<p>fclose($fp);</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vasimpadhiyar.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vasimpadhiyar.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vasimpadhiyar.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vasimpadhiyar.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vasimpadhiyar.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vasimpadhiyar.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vasimpadhiyar.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vasimpadhiyar.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vasimpadhiyar.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vasimpadhiyar.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vasimpadhiyar.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vasimpadhiyar.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vasimpadhiyar.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vasimpadhiyar.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=23&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vasimpadhiyar.wordpress.com/2010/12/20/create-csv-file-from-array-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24b9351dbdc713a954cca8b09637495a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vasimpadhiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>How to check abuse word from array in php script</title>
		<link>http://vasimpadhiyar.wordpress.com/2010/12/20/how-to-check-abuse-word-from-array-in-php-script/</link>
		<comments>http://vasimpadhiyar.wordpress.com/2010/12/20/how-to-check-abuse-word-from-array-in-php-script/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 15:11:23 +0000</pubDate>
		<dc:creator>vasimpadhiyar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vasimpadhiyar.wordpress.com/?p=19</guid>
		<description><![CDATA[$abuse_words = array( &#8216;crap&#8217;, &#8216;bugger&#8217;, &#8216;fuck&#8217;, &#8216;fucking&#8217;, &#8216;shit&#8217;, &#8216;shite&#8217;, &#8216;bull&#8217;, &#8216;doodoo&#8217;, &#8216;pooh&#8217;, &#8216;scat&#8217;, &#8216;shiz&#8217;); $string = &#8220;good word&#8221;; // change to some abuse word that is in array if(check_abuse_word_in_text($string)) { echo &#8220;Abuse Word Found&#8221;; } else { echo &#8220;Ok&#8221;; } function check_abuse_word_in_text($string) { global $abuse_words; $found = false; foreach($abuse_words as $find) { $pos = strpos($string, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=19&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>$abuse_words = array(	&#8216;crap&#8217;,<br />
&#8216;bugger&#8217;,<br />
&#8216;fuck&#8217;,<br />
&#8216;fucking&#8217;,<br />
&#8216;shit&#8217;,<br />
&#8216;shite&#8217;,<br />
&#8216;bull&#8217;,<br />
&#8216;doodoo&#8217;,<br />
&#8216;pooh&#8217;,<br />
&#8216;scat&#8217;,<br />
&#8216;shiz&#8217;);</p>
<p>$string = &#8220;good word&#8221;; // change to some abuse word that is in array</p>
<p>if(check_abuse_word_in_text($string))<br />
{<br />
	echo &#8220;Abuse Word Found&#8221;;<br />
}<br />
else<br />
{<br />
	echo &#8220;Ok&#8221;;<br />
}</p>
<p>function check_abuse_word_in_text($string)<br />
{<br />
	global $abuse_words;</p>
<p>	$found = false;<br />
	foreach($abuse_words as $find)<br />
	{<br />
		$pos = strpos($string, $find);<br />
		if ($pos === false)<br />
		{<br />
		   continue;<br />
		}<br />
		else<br />
		{<br />
		   $found=true;<br />
		   break;<br />
		}<br />
	}<br />
	return $found;<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vasimpadhiyar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vasimpadhiyar.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vasimpadhiyar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vasimpadhiyar.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vasimpadhiyar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vasimpadhiyar.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vasimpadhiyar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vasimpadhiyar.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vasimpadhiyar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vasimpadhiyar.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vasimpadhiyar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vasimpadhiyar.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vasimpadhiyar.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vasimpadhiyar.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=19&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vasimpadhiyar.wordpress.com/2010/12/20/how-to-check-abuse-word-from-array-in-php-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24b9351dbdc713a954cca8b09637495a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vasimpadhiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Find extension from filename in php</title>
		<link>http://vasimpadhiyar.wordpress.com/2010/12/20/find-extension-from-filename-in-php/</link>
		<comments>http://vasimpadhiyar.wordpress.com/2010/12/20/find-extension-from-filename-in-php/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 15:01:05 +0000</pubDate>
		<dc:creator>vasimpadhiyar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vasimpadhiyar.wordpress.com/?p=17</guid>
		<description><![CDATA[$filename = &#8220;somefilename.png&#8221;; $ext = substr(strrchr($filename,&#8217;.'),1); echo $ext; // will print png<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=17&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>$filename = &#8220;somefilename.png&#8221;;</p>
<p>$ext = substr(strrchr($filename,&#8217;.'),1);</p>
<p>echo $ext; // will print png</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vasimpadhiyar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vasimpadhiyar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vasimpadhiyar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vasimpadhiyar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vasimpadhiyar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vasimpadhiyar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vasimpadhiyar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vasimpadhiyar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vasimpadhiyar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vasimpadhiyar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vasimpadhiyar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vasimpadhiyar.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vasimpadhiyar.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vasimpadhiyar.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=17&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vasimpadhiyar.wordpress.com/2010/12/20/find-extension-from-filename-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24b9351dbdc713a954cca8b09637495a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vasimpadhiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>How to connect mysql database in php</title>
		<link>http://vasimpadhiyar.wordpress.com/2010/12/20/how-to-connect-mysql-database-in-php/</link>
		<comments>http://vasimpadhiyar.wordpress.com/2010/12/20/how-to-connect-mysql-database-in-php/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 14:57:27 +0000</pubDate>
		<dc:creator>vasimpadhiyar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vasimpadhiyar.wordpress.com/?p=13</guid>
		<description><![CDATA[$HOSTNAME = &#8220;localhost&#8221;; // server host name $USERNAME = &#8220;root&#8221;; // host username $PASSWORD = &#8220;&#8221;; // host password for username you provide above $DATABASE = &#8220;database_name&#8221;; // datanase name $connect = mysql_connect($HOSTNAME,$USERNAME,$PASSWORD); if(!$connect) { echo &#8220;Error : &#8220;.mysql_error(); exit; } else { mysql_select_db($DATABASE,$connect); }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=13&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>$HOSTNAME = &#8220;localhost&#8221;; // server host name<br />
$USERNAME = &#8220;root&#8221;;  // host username<br />
$PASSWORD = &#8220;&#8221;;  // host password for username you provide above<br />
$DATABASE = &#8220;database_name&#8221;; // datanase name</p>
<p>$connect = mysql_connect($HOSTNAME,$USERNAME,$PASSWORD);<br />
if(!$connect)<br />
{<br />
	echo &#8220;Error : &#8220;.mysql_error();<br />
	exit;<br />
}<br />
else<br />
{<br />
	mysql_select_db($DATABASE,$connect);<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vasimpadhiyar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vasimpadhiyar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vasimpadhiyar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vasimpadhiyar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vasimpadhiyar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vasimpadhiyar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vasimpadhiyar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vasimpadhiyar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vasimpadhiyar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vasimpadhiyar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vasimpadhiyar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vasimpadhiyar.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vasimpadhiyar.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vasimpadhiyar.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vasimpadhiyar.wordpress.com&amp;blog=17341098&amp;post=13&amp;subd=vasimpadhiyar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vasimpadhiyar.wordpress.com/2010/12/20/how-to-connect-mysql-database-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24b9351dbdc713a954cca8b09637495a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vasimpadhiyar</media:title>
		</media:content>
	</item>
	</channel>
</rss>
