<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>LAMPdocs: Linux, Apache, MySQL, PHP</title>
	
	<link>http://www.lampdocs.com/blog</link>
	<description>Linux, Apache, MySQL, PHP: Docs, Tricks and Secrets</description>
	<lastBuildDate>Wed, 04 Jan 2012 13:11:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/lampdocs" /><feedburner:info uri="lampdocs" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>err: merchant purse not activated step:131: How To Fix</title>
		<link>http://feedproxy.google.com/~r/lampdocs/~3/VSHLDpwntXM/</link>
		<comments>http://www.lampdocs.com/blog/2012/01/err-merchant-purse-not-activated-step131-how-to-fix/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 13:11:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=983</guid>
		<description><![CDATA[This is the most common error when you are trying to accept Webmoney through merchant system. If you are getting this error, you should check your merchant area as your purse was disconnected for any reason.]]></description>
			<content:encoded><![CDATA[<p>This is the most common error when you are trying to accept Webmoney through merchant system. If you are getting this error, you should check your merchant area as your purse was disconnected for any reason. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/mtCPC_uG2mQUamVxCphpqlTXBmM/0/da"><img src="http://feedads.g.doubleclick.net/~a/mtCPC_uG2mQUamVxCphpqlTXBmM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mtCPC_uG2mQUamVxCphpqlTXBmM/1/da"><img src="http://feedads.g.doubleclick.net/~a/mtCPC_uG2mQUamVxCphpqlTXBmM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/lampdocs/~4/VSHLDpwntXM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2012/01/err-merchant-purse-not-activated-step131-how-to-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lampdocs.com/blog/2012/01/err-merchant-purse-not-activated-step131-how-to-fix/</feedburner:origLink></item>
		<item>
		<title>Windows-Based ATM in Ukraine :)</title>
		<link>http://feedproxy.google.com/~r/lampdocs/~3/g0ZP-XIq_hE/</link>
		<comments>http://www.lampdocs.com/blog/2011/12/windows-based-atm-in-ukraine/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 09:38:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=979</guid>
		<description><![CDATA[Just wish to say: Happy New Year to everyone! Wish you not to meet such ATM machines in 2012!]]></description>
			<content:encoded><![CDATA[<p>Just wish to say: Happy New Year to everyone! Wish you not to meet such ATM machines in 2012! <img src='http://www.lampdocs.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://www.lampdocs.com/blog/wp-content/uploads/2011/12/IMAG0109.jpg"><img src="http://www.lampdocs.com/blog/wp-content/uploads/2011/12/IMAG0109-300x179.jpg" alt="" title="IMAG0109" width="300" height="179" class="alignnone size-medium wp-image-980" /></a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/jZ4pkdTwUgi24JVi5DoirFHPDdQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/jZ4pkdTwUgi24JVi5DoirFHPDdQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jZ4pkdTwUgi24JVi5DoirFHPDdQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/jZ4pkdTwUgi24JVi5DoirFHPDdQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/lampdocs/~4/g0ZP-XIq_hE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2011/12/windows-based-atm-in-ukraine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lampdocs.com/blog/2011/12/windows-based-atm-in-ukraine/</feedburner:origLink></item>
		<item>
		<title>How to Delete All admin Messages from Directadmin</title>
		<link>http://feedproxy.google.com/~r/lampdocs/~3/9ts_wW7E-bI/</link>
		<comments>http://www.lampdocs.com/blog/2011/12/how-to-delete-all-admin-messages-from-directadmin/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 12:29:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Directadmin Tricks]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=977</guid>
		<description><![CDATA[How to delete all messages for your directadmin admin account]]></description>
			<content:encoded><![CDATA[<p>If your Directadmin server faces a brute-force attack or script-kiddies are trying to guess your password, your message queue is full of messages. If you don&#8217;t check them periodically, you will have some problems deleting them. </p>
<p>I have been away for 2 weeks so I didn&#8217;t check my server for messages. When I came back, there were 2600 messages, and any attempt to list them all was unsuccessful. Since I know my users aren&#8217;t using the Directadmin Message system, it was safe to delete them. </p>
<p>In order to do this, you need to go to /usr/local/directadmin/data/tickets . You will see some folders there. These folders are full of messages, that are safe to delete. In order to find out, which folders you need to delete, you need to check /usr/local/directadmin/data/admin/tickets.list. When you see the list of messages, you may delete those you don&#8217;t need. </p>
<p>That&#8217;s pretty simple, and you may use this method for any other reseller. Just replace admin with your reseller name and check its message list.  </p>

<p><a href="http://feedads.g.doubleclick.net/~a/dODNTNpDu-Tmp770lRo-iKVm1VI/0/da"><img src="http://feedads.g.doubleclick.net/~a/dODNTNpDu-Tmp770lRo-iKVm1VI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/dODNTNpDu-Tmp770lRo-iKVm1VI/1/da"><img src="http://feedads.g.doubleclick.net/~a/dODNTNpDu-Tmp770lRo-iKVm1VI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/lampdocs/~4/9ts_wW7E-bI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2011/12/how-to-delete-all-admin-messages-from-directadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lampdocs.com/blog/2011/12/how-to-delete-all-admin-messages-from-directadmin/</feedburner:origLink></item>
		<item>
		<title>Capturing Non Browser Traffic Under Windows</title>
		<link>http://feedproxy.google.com/~r/lampdocs/~3/6JybAuET4Lc/</link>
		<comments>http://www.lampdocs.com/blog/2011/12/capturing-non-browser-traffic-under-windows/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 14:20:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software Reviews]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=972</guid>
		<description><![CDATA[How to capture non browser http traffic]]></description>
			<content:encoded><![CDATA[<p>Today I had to inspect what traffic does a program create. For browser traffic I usually use Fiddler (it&#8217;s free and it does the job). But it doesn&#8217;t suit for a software that doesn&#8217;t use proxies. So I had to find the solution, how to capture packets sent by my program (i don&#8217;t have any sources for the program so I cannot determine what traffic it should create). </p>
<p>I&#8217;ve tried many programs for that, but the solution that worked was <a href="http://sourceforge.net/projects/packetyzer/" title="Packetyzer">Packetyzer</a>. It doesn&#8217;t matter that most recent version is about 5 years old &#8211; it works great under Windows 7. </p>
<p>In order to get it working I downloaded the program binary (you can find the link above) and installed it. The program didn&#8217;t start at its first run, so I had to install another software named <a href="http://www.winpcap.org/">Winpcap</a>. I&#8217;ve used default settings for both programs so there are no tricks for this installation.  </p>
<p>To start capturing the traffic you need to start Packetyzer. It asks for a new session &#8211; check &#8220;Automatic scrolling&#8221; and click &#8220;OK&#8221;.<br />
<a href="http://www.lampdocs.com/blog/wp-content/uploads/2011/12/packetyzer1.png"><img src="http://www.lampdocs.com/blog/wp-content/uploads/2011/12/packetyzer1-300x203.png" alt="" title="packetyzer1" width="300" height="203" class="alignnone size-medium wp-image-973" /></a></p>
<p>Then choose Session->Start Capture<br />
<a href="http://www.lampdocs.com/blog/wp-content/uploads/2011/12/packet2.png"><img src="http://www.lampdocs.com/blog/wp-content/uploads/2011/12/packet2-300x168.png" alt="" title="packet2" width="300" height="168" class="alignnone size-medium wp-image-974" /></a></p>
<p>You&#8217;re done. Every packet that goes through your network interface will now be shown in Packetyzer. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/UsK0_ZSe8UsQ9PV_vlELiNppUSo/0/da"><img src="http://feedads.g.doubleclick.net/~a/UsK0_ZSe8UsQ9PV_vlELiNppUSo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/UsK0_ZSe8UsQ9PV_vlELiNppUSo/1/da"><img src="http://feedads.g.doubleclick.net/~a/UsK0_ZSe8UsQ9PV_vlELiNppUSo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/lampdocs/~4/6JybAuET4Lc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2011/12/capturing-non-browser-traffic-under-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lampdocs.com/blog/2011/12/capturing-non-browser-traffic-under-windows/</feedburner:origLink></item>
		<item>
		<title>Twitter Error 417 – Expectation Failed: PHP Solution</title>
		<link>http://feedproxy.google.com/~r/lampdocs/~3/b3WE60WVB-o/</link>
		<comments>http://www.lampdocs.com/blog/2011/06/twitter-error-417-expectation-failed-php-solution/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 13:01:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Solutions]]></category>
		<category><![CDATA[solve twitter 417]]></category>
		<category><![CDATA[twitter 417 php]]></category>
		<category><![CDATA[twitter expect php]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=967</guid>
		<description><![CDATA[Recently I had to deal with Twitter avatar upload for a Twitter application. Everything went very well, but when I have prepared everything for the upload query, the only server response I got was Error 417. Since I used cURL, I tried to deal with different headers, but with no luck at all. I found [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to deal with Twitter avatar upload for a Twitter application. Everything went very well, but when I have prepared everything for the upload query, the only server response I got was Error 417. </p>
<p>Since I used cURL, I tried to deal with different headers, but with no luck at all. I found the solution at <a href="http://blogs.msdn.com/b/shitals/archive/2008/12/27/9254245.aspx?CommentPosted=true#commentmessage">MSDN</a> website. The correct string is: </p>
<blockquote><p>curl_setopt($ch, CURLOPT_HTTPHEADER, array(&#8216;Expect:&#8217;));</p></blockquote>
<p>You need to add it to your cURL block. This issue is related to Twitter only; I have no idea why they decided to accept only blank Expect header. Hope it saves you some time. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/m1p2UCsEigD0ThCTtSZKsIakYYk/0/da"><img src="http://feedads.g.doubleclick.net/~a/m1p2UCsEigD0ThCTtSZKsIakYYk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/m1p2UCsEigD0ThCTtSZKsIakYYk/1/da"><img src="http://feedads.g.doubleclick.net/~a/m1p2UCsEigD0ThCTtSZKsIakYYk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/lampdocs/~4/b3WE60WVB-o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2011/06/twitter-error-417-expectation-failed-php-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lampdocs.com/blog/2011/06/twitter-error-417-expectation-failed-php-solution/</feedburner:origLink></item>
		<item>
		<title>Some Godaddy Coupons for April 2011</title>
		<link>http://feedproxy.google.com/~r/lampdocs/~3/B9pBx91vUg0/</link>
		<comments>http://www.lampdocs.com/blog/2011/04/some-godaddy-coupons-for-april-2011/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 13:52:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[godaddy april codes]]></category>
		<category><![CDATA[godaddy coupon]]></category>
		<category><![CDATA[godaddy coupon 2011]]></category>
		<category><![CDATA[godaddy off]]></category>
		<category><![CDATA[godaddy sale]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=964</guid>
		<description><![CDATA[Actual godaddy coupon codes for april 2011]]></description>
			<content:encoded><![CDATA[<p>For those who use Godaddy.com, I&#8217;d like to share some coupon codes. Here they are:</p>
<p>SAVE 15%* off your purchase of $50 or more. Just use source code <strong>gdbb1728</strong></p>
<p>Take 10% off your order. Simply enter<strong> gdbba22</strong></p>
<p>SAVE 20%* off your purchase of $65 or more<strong>.</strong> Just use source code <strong>gd9bb</strong><br />
Hope it saves you some money<strong>.<br />
</strong></p>

<p><a href="http://feedads.g.doubleclick.net/~a/96iljMMjNnKmtl37e53vJtjEcG0/0/da"><img src="http://feedads.g.doubleclick.net/~a/96iljMMjNnKmtl37e53vJtjEcG0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/96iljMMjNnKmtl37e53vJtjEcG0/1/da"><img src="http://feedads.g.doubleclick.net/~a/96iljMMjNnKmtl37e53vJtjEcG0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/lampdocs/~4/B9pBx91vUg0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2011/04/some-godaddy-coupons-for-april-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lampdocs.com/blog/2011/04/some-godaddy-coupons-for-april-2011/</feedburner:origLink></item>
		<item>
		<title>Google Adsense Check Reissue: The Only Method That Works</title>
		<link>http://feedproxy.google.com/~r/lampdocs/~3/jwMTw384Rqg/</link>
		<comments>http://www.lampdocs.com/blog/2011/02/google-adsense-check-reissue-the-only-method-that-works/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 08:38:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[adsense check]]></category>
		<category><![CDATA[google check problems]]></category>
		<category><![CDATA[google check reissue]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=960</guid>
		<description><![CDATA[How to request adsense check reissue: the faster way]]></description>
			<content:encoded><![CDATA[<p>Recently I decided to switch to Electronic Funds Transfer for Google Adsense, since it&#8217;s more quick and convenient for me. I have already received some checks and I decided to credit them back to receive funds via Western Union Quick Cash. I&#8217;ve followed Google advices, and went to the following <a href="http://www.google.com/adsense/support/bin/request.py?hl=en&#038;contact_type=request_reissue&#038;rd=1">link</a>. I have tried filling this form about 10 times, trying different values for Payment Amount (Checks are in USD, but my reporting currency is EUR). Every time the response was the same: We are unable to find your check. There are no guidelines or hints on filling the form; Adsense forums are full of messages reporting errors. </p>
<p>Finally I found the solution, that has successfully stopped my check and funds were credited to account balance. Here it is: </p>
<p>All you need is to use another initial URL for the form. Here is the correct URL: <a href="https://www.google.com/adsense/support/bin/request.py?contact_type=request_reissue_received">https://www.google.com/adsense/support/bin/request.py?contact_type=request_reissue_received</a>. After I filled this form, I got the message that my check was stopped. </p>
<p>Hope it saves you some time, since I spent some hours trying to find the solution. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/GQeqNMxpqLf3JXljGM7qT88Wy3w/0/da"><img src="http://feedads.g.doubleclick.net/~a/GQeqNMxpqLf3JXljGM7qT88Wy3w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/GQeqNMxpqLf3JXljGM7qT88Wy3w/1/da"><img src="http://feedads.g.doubleclick.net/~a/GQeqNMxpqLf3JXljGM7qT88Wy3w/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/lampdocs/~4/jwMTw384Rqg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2011/02/google-adsense-check-reissue-the-only-method-that-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lampdocs.com/blog/2011/02/google-adsense-check-reissue-the-only-method-that-works/</feedburner:origLink></item>
		<item>
		<title>PHP: strtolower for Russian and Cyrillic</title>
		<link>http://feedproxy.google.com/~r/lampdocs/~3/3ieWPJ-LRes/</link>
		<comments>http://www.lampdocs.com/blog/2011/01/php-strtolower-for-russian-and-cyrillic/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 15:07:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Solutions]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=958</guid>
		<description><![CDATA[If you need to work with Russian text in PHP, you may notice that functions that are related to CaSe are not working as expected. I mean strtolower, strtouper, ucwords, and so on. In order to get what you need I suggest to use mb_convert functions. Here is the example: You can check reference table [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to work with Russian text in PHP, you may notice that functions that are related to CaSe are not working as expected. I mean strtolower, strtouper, ucwords, and so on. In order to get what you need I suggest to use mb_convert functions. Here is the example:</p>
<blockquote><p>
<?php<br />
$string = "Строка";<br />
$string = mb_convert_case($string, MB_CASE_LOWER, "UTF-8");<br />
echo $string;</p>
<p>//output is: строка<br />
?> </p></blockquote>
<p>You can check reference table for functions, I think you will find more useful functions for you. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/mZ4GYLcqW-G3Y_zfrnWR98qpba4/0/da"><img src="http://feedads.g.doubleclick.net/~a/mZ4GYLcqW-G3Y_zfrnWR98qpba4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mZ4GYLcqW-G3Y_zfrnWR98qpba4/1/da"><img src="http://feedads.g.doubleclick.net/~a/mZ4GYLcqW-G3Y_zfrnWR98qpba4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/lampdocs/~4/3ieWPJ-LRes" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2011/01/php-strtolower-for-russian-and-cyrillic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lampdocs.com/blog/2011/01/php-strtolower-for-russian-and-cyrillic/</feedburner:origLink></item>
		<item>
		<title>How to Fix Broken Outlook 2010 PST File</title>
		<link>http://feedproxy.google.com/~r/lampdocs/~3/9eTkuPlPRIw/</link>
		<comments>http://www.lampdocs.com/blog/2011/01/how-to-fix-broken-outlook-2010-pst-file/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 14:17:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Windows]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=955</guid>
		<description><![CDATA[How to fix broken pst file in outlook]]></description>
			<content:encoded><![CDATA[<p>Recently I have upgraded my Office to Office 2010. This version looks very interesting and I really like its look, that is especially related to mail. I liked it so much that I have decided to switch my default mail client (The Bat!). Especially I liked the instant search panel, that showed all linked messages. </p>
<p>After my laptop got stuck, I had to reset it. After that no related mail information was shown. I started looking for the fix and it came from <a href="http://support.microsoft.com/kb/272227">Microsoft Website</a>. After I run Scanpst.exe, there were some errors found and search data started showing again. I would also recommend this tool if you have any problems with your PST file. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/EbuTBEkS1FVc8WpghBlDuJyZ10g/0/da"><img src="http://feedads.g.doubleclick.net/~a/EbuTBEkS1FVc8WpghBlDuJyZ10g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/EbuTBEkS1FVc8WpghBlDuJyZ10g/1/da"><img src="http://feedads.g.doubleclick.net/~a/EbuTBEkS1FVc8WpghBlDuJyZ10g/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/lampdocs/~4/9eTkuPlPRIw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2011/01/how-to-fix-broken-outlook-2010-pst-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lampdocs.com/blog/2011/01/how-to-fix-broken-outlook-2010-pst-file/</feedburner:origLink></item>
		<item>
		<title>PHP: strpos that takes array as an argument</title>
		<link>http://feedproxy.google.com/~r/lampdocs/~3/Kzu8K_-_6f0/</link>
		<comments>http://www.lampdocs.com/blog/2010/12/php-strpos-that-takes-array-as-an-argument/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 16:58:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Solutions]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=942</guid>
		<description><![CDATA[Just found one useful function and would kike to share it. If you often use strpos, you might find this useful. This function will be useful if you need to find whether ANY element of array is presented in the source string. Else you have to either modify it, or create another one.]]></description>
			<content:encoded><![CDATA[<p>Just found one useful function and would kike to share it. If you often use strpos, you might find this useful. </p>
<blockquote><p>
<?<br />
// strpos that takes an array of values to match against a string<br />
// note the stupid argument order (to match strpos)<br />
function strpos_arr($haystack, $needle) {<br />
    if(!is_array($needle)) $needle = array($needle);<br />
    foreach($needle as $what) {<br />
        if(($pos = strpos($haystack, $what))!==false) return $pos;<br />
    }<br />
    return false;<br />
}<br />
?></p></blockquote>
<p>This function will be useful if you need to find whether ANY element of array is presented in the source string. Else you have to either modify it, or create another one. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/F8rYBHLBTbVVZF6YEgh_1PyPtJc/0/da"><img src="http://feedads.g.doubleclick.net/~a/F8rYBHLBTbVVZF6YEgh_1PyPtJc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/F8rYBHLBTbVVZF6YEgh_1PyPtJc/1/da"><img src="http://feedads.g.doubleclick.net/~a/F8rYBHLBTbVVZF6YEgh_1PyPtJc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/lampdocs/~4/Kzu8K_-_6f0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2010/12/php-strpos-that-takes-array-as-an-argument/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lampdocs.com/blog/2010/12/php-strpos-that-takes-array-as-an-argument/</feedburner:origLink></item>
	</channel>
</rss>

