<?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/"
	>

<channel>
	<title>Web development &#187; PHP code</title>
	<atom:link href="http://sourcecodemoney.com/category/php-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://sourcecodemoney.com</link>
	<description>Use source code for money</description>
	<lastBuildDate>Mon, 21 Nov 2011 12:03:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Declare new array php</title>
		<link>http://sourcecodemoney.com/declare-new-array-php/php-code/</link>
		<comments>http://sourcecodemoney.com/declare-new-array-php/php-code/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 11:28:45 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Array Array]]></category>
		<category><![CDATA[Array Php]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=386</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		You can declare new array in PHP by using the code below: $new_array = array();]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/declare-new-array-php/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>You can declare new array in PHP by using the code below:</p>
<pre><code>$new_array = array();</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/declare-new-array-php/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>preg_replace to replace all href</title>
		<link>http://sourcecodemoney.com/preg_replace-to-replace-all-href/php-code/</link>
		<comments>http://sourcecodemoney.com/preg_replace-to-replace-all-href/php-code/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 03:36:56 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Double Quotation Mark]]></category>
		<category><![CDATA[Element]]></category>
		<category><![CDATA[Gt 2]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Marker]]></category>
		<category><![CDATA[Parentheses]]></category>
		<category><![CDATA[Replacement String]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=330</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		Here&#8217;s a good one $pattern = "/as+hrefs*=s*['\"]?([^'\"&#62;]+)['\"]?&#62;([^&#60;]*)&#60;/ie"; $replacement = "'a href=\"$1'.strtolower(str_replace(' ', '', '$2')).'\"&#62;$2&#60;'"; $string = preg_replace($pattern, $replacement, $string); The pattern says to find: &#8216;a href&#8216; &#8212; there must be at least one space in between the &#8216;a&#8217; and the &#8216;href&#8216; ( \s+ ), followed by zero or more spaces( \s* ), followed by the equal [...]]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/preg_replace-to-replace-all-href/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>Here&#8217;s a good one</p>
<pre>$pattern = "/as+<strong>href</strong>s*=s*['\"]?([^'\"&gt;]+)['\"]?&gt;([^&lt;]*)&lt;/ie";
$replacement = "'a <strong>href</strong>=\"$1'.strtolower(str_replace(' ', '', '$2')).'\"&gt;$2&lt;'";
$string = <strong>preg_replace</strong>($pattern, $replacement, $string);</pre>
<p><span style="font-family: verdana; color: #000000; font-size: x-small;"><br />
The pattern says to find:<br />
</span></p>
<ol>
<li><span style="font-family: verdana; color: #000000; font-size: x-small;">&#8216;a <strong>href</strong>&#8216; &#8212; there must be at least one space in between the &#8216;a&#8217; and the &#8216;<strong>href</strong>&#8216; ( \s+ ),</span></li>
<li><span style="font-family: verdana; color: #000000; font-size: x-small;">followed by zero or more spaces( \s* ),</span></li>
<li><span style="font-family: verdana; color: #000000; font-size: x-small;">followed by the equal sign ( = ),</span></li>
<li><span style="font-family: verdana; color: #000000; font-size: x-small;">followed by zero or more spaces ( \s* ),</span></li>
<li><span style="font-family: verdana; color: #000000; font-size: x-small;">followed by an optional single quotation mark or double quotation mark ( ['\"]? ),</span></li>
<li><span style="font-family: verdana; color: #000000; font-size: x-small;">followed by one or more of anything that is not a single quotation mark, a double quotation mark or an end element marker and capture this subpattern by using parentheses ( ([^'\"&gt;]+) ),</span></li>
<li><span style="font-family: verdana; color: #000000; font-size: x-small;">followed by an optional closing single quotation mark or double quotation mark ( ['\"]? ),</span></li>
<li><span style="font-family: verdana; color: #000000; font-size: x-small;">followed by a closing element marker ( &gt; ),</span></li>
<li><span style="font-family: verdana; color: #000000; font-size: x-small;">followed by zero or more of anything that is not an opening element marker ( ([^&lt;]*) ),</span></li>
<li><span style="font-family: verdana; color: #000000; font-size: x-small;">followed by an opening element marker.</span></li>
</ol>
<p>Taken from <a href="http://www.webmasterworld.com/forum88/13008.htm">http://www.webmasterworld.com/forum88/13008.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/preg_replace-to-replace-all-href/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross-Site Scripting</title>
		<link>http://sourcecodemoney.com/cross-site-scripting/php-code/</link>
		<comments>http://sourcecodemoney.com/cross-site-scripting/php-code/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 14:55:36 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Article 6]]></category>
		<category><![CDATA[Cross Site Scripting]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=290</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		Here&#8217;s a nice tutorial: http://www.xssed.com/article/6/Paper_Kr3ws_Cross-Site_Scripting_Tutorial/]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/cross-site-scripting/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>Here&#8217;s a nice tutorial:</p>
<p>http://www.xssed.com/article/6/Paper_Kr3ws_Cross-Site_Scripting_Tutorial/</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/cross-site-scripting/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sending HTML email</title>
		<link>http://sourcecodemoney.com/sending-html-email/php-code/</link>
		<comments>http://sourcecodemoney.com/sending-html-email/php-code/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 05:59:30 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Attachment Php]]></category>
		<category><![CDATA[Email Attachment]]></category>
		<category><![CDATA[Email Clients]]></category>
		<category><![CDATA[Email Html]]></category>
		<category><![CDATA[Html Email]]></category>
		<category><![CDATA[Html Emails]]></category>
		<category><![CDATA[Html Mail]]></category>
		<category><![CDATA[Html Markup]]></category>
		<category><![CDATA[Mail Clients]]></category>
		<category><![CDATA[Php Email]]></category>
		<category><![CDATA[Plain Text Version]]></category>
		<category><![CDATA[Send Email]]></category>
		<category><![CDATA[Sending Email]]></category>
		<category><![CDATA[Sending Mail]]></category>
		<category><![CDATA[Text Html]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=287</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		Some mail clients cannot understand HTML emails. Therefore it is best to send any HTML email using a multipart construction, where one part contains a plain-text version of the email and the other part is HTML. If your customers have HTML email turned off, they will still get a nice email, even if they don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/sending-html-email/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>Some mail clients cannot understand HTML emails. Therefore it is best to send any HTML email using a multipart construction, where one part contains a plain-text version of the email and the other part is HTML. If your customers have HTML email turned off, they will still get a nice email, even if they don&#8217;t get all of the HTML markup. Have a look at the example:</p>
<p><a href="http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php">http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php</a></p>
<p>or this is better http://www.codingforums.com/showthread.php?t=142893</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/sending-html-email/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uploading a file using Curl in PHP</title>
		<link>http://sourcecodemoney.com/uploading-a-file-using-curl-in-php/php-code/</link>
		<comments>http://sourcecodemoney.com/uploading-a-file-using-curl-in-php/php-code/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 01:20:13 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[Exec]]></category>
		<category><![CDATA[Infront]]></category>
		<category><![CDATA[Input Type File]]></category>
		<category><![CDATA[Jpg]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Path]]></category>
		<category><![CDATA[Random Bits]]></category>
		<category><![CDATA[Upload Files]]></category>
		<category><![CDATA[Upload Php]]></category>
		<category><![CDATA[Url]]></category>
		<category><![CDATA[Useragent]]></category>
		<category><![CDATA[Virus Scan]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/uploading-a-file-using-curl-in-php/php-code/</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		Here&#8217;s how to upload files using curl in php: (it&#8217;s very easy) notice the @ infront of the file path, this is the magic part. &#60;?php $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible;)"); curl_setopt($ch, CURLOPT_URL, _VIRUS_SCAN_URL); curl_setopt($ch, CURLOPT_POST, true); // same as &#60;input type="file" name="file_box"&#62; $post [...]]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/uploading-a-file-using-curl-in-php/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>Here&#8217;s how to upload files using curl in php: (it&#8217;s very easy)</p>
<p>notice the @ infront of the file path, this is the magic part.</p>
<pre>&lt;?php
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_VERBOSE, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible;)");
    curl_setopt($ch, CURLOPT_URL, _VIRUS_SCAN_URL);
    curl_setopt($ch, CURLOPT_POST, true);
    // same as &lt;input type="file" name="file_box"&gt;
    $post = array(
        "file_box"=&gt;"@/path/to/myfile.jpg",
    );
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
    $response = curl_exec($ch);
?&gt;

Source: http://dtbaker.com.au/random-bits/uploading-a-file-using-curl-in-php.html</pre>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/uploading-a-file-using-curl-in-php/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Permanet Redirect in PHP</title>
		<link>http://sourcecodemoney.com/permanet-redirect-in-php/php-code/</link>
		<comments>http://sourcecodemoney.com/permanet-redirect-in-php/php-code/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 20:28:43 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Header Location]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Redirect]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=261</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		&#60;?php // Permanent redirection header(&#8220;HTTP/1.1 301 Moved Permanently&#8221;); header(&#8220;Location: http://www.website.com/&#8221;); exit(); ?&#62;]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/permanet-redirect-in-php/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>&lt;?php<br />
// Permanent redirection<br />
header(&#8220;HTTP/1.1 301 Moved Permanently&#8221;);<br />
header(&#8220;Location: http://www.website.com/&#8221;);<br />
exit();<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/permanet-redirect-in-php/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get User Role in WordPress</title>
		<link>http://sourcecodemoney.com/get-user-role-in-wordpress/php-code/</link>
		<comments>http://sourcecodemoney.com/get-user-role-in-wordpress/php-code/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 04:17:50 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Capabilities]]></category>
		<category><![CDATA[Login Email]]></category>
		<category><![CDATA[Meta Key]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=257</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		$blogusers = $wpdb-&#62;get_results( &#8220;SELECT user_id, user_login, display_name, user_email, meta_value FROM wp_users, wp_usermeta WHERE wp_users.ID = wp_usermeta.user_id AND meta_key = &#8216;wp_1_capabilities&#8217; and wp_users.ID=1&#8243; ); $t = @unserialize( $blogusers[0]-&#62;meta_value ); if($t["editor"] == 1) { }]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/get-user-role-in-wordpress/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>$blogusers = $wpdb-&gt;get_results( &#8220;SELECT user_id, user_login, display_name, user_email, meta_value FROM wp_users, wp_usermeta WHERE wp_users.ID = wp_usermeta.user_id AND meta_key = &#8216;wp_1_capabilities&#8217; and wp_users.ID=1&#8243; );</p>
<p>$t = @unserialize( $blogusers[0]-&gt;meta_value );</p>
<p>if($t["editor"] == 1)</p>
<p>{</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/get-user-role-in-wordpress/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import Mochimedia Feed</title>
		<link>http://sourcecodemoney.com/import-mochimedia-feed/php-code/</link>
		<comments>http://sourcecodemoney.com/import-mochimedia-feed/php-code/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 09:32:04 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Code Game]]></category>
		<category><![CDATA[Game Feed]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=253</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		Just make a code for importing Mochimedia game feed. It will import the feed by creating post, add tag, insert into category, and schedule it dailly. It is using wordpress technology. You need to put these files in wp root. Download it here.]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/import-mochimedia-feed/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>Just make a code for importing Mochimedia game feed.</p>
<p>It will import the feed by creating post, add tag, insert into category, and schedule it dailly. It is using wordpress technology. You need to put these files in wp root.</p>
<p>Download it <a href="http://sourcecodemoney.com/doc/import.zip" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/import-mochimedia-feed/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get absoute path PHP</title>
		<link>http://sourcecodemoney.com/get-absoute-path-php/php-code/</link>
		<comments>http://sourcecodemoney.com/get-absoute-path-php/php-code/#comments</comments>
		<pubDate>Fri, 28 May 2010 07:55:16 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Echo]]></category>
		<category><![CDATA[Getcwd]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Path]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=246</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		&#60;?php $path = getcwd(); echo $path; ?&#62;]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/get-absoute-path-php/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>&lt;?php<br />
$path = getcwd();<br />
echo $path;<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/get-absoute-path-php/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handling Paypal Recurring Payments</title>
		<link>http://sourcecodemoney.com/handling-paypal-recurring-payments/php-code/</link>
		<comments>http://sourcecodemoney.com/handling-paypal-recurring-payments/php-code/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 06:24:24 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Amp]]></category>
		<category><![CDATA[Api]]></category>
		<category><![CDATA[Cgi]]></category>
		<category><![CDATA[Charset Windows]]></category>
		<category><![CDATA[Checkout Options]]></category>
		<category><![CDATA[Client Domain]]></category>
		<category><![CDATA[Cms]]></category>
		<category><![CDATA[Country Id]]></category>
		<category><![CDATA[Currency Usd]]></category>
		<category><![CDATA[Demo]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Express Checkout]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Ipn]]></category>
		<category><![CDATA[Jan 29]]></category>
		<category><![CDATA[Merchants]]></category>
		<category><![CDATA[Notification Preferences]]></category>
		<category><![CDATA[Notifications]]></category>
		<category><![CDATA[Payment Date]]></category>
		<category><![CDATA[Payment Notification]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[Paypal Payment]]></category>
		<category><![CDATA[Preferences Menu]]></category>
		<category><![CDATA[Profile Status]]></category>
		<category><![CDATA[Profiles]]></category>
		<category><![CDATA[Recurring Billing]]></category>
		<category><![CDATA[Transaction Subject]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=224</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		* Recurring Payments Demo * How Recurring Payments Work * Recurring Payments Terms * Recurring Payments With Express Checkout * Options for Creating a Recurring Payments Profile * Recurring Payments Profile Status * Getting Recurring Payments Profile Information * Modifying a Recurring Payments Profile * Billing the Outstanding Amount of a Profile * Recurring Payments [...]]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/handling-paypal-recurring-payments/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>* Recurring Payments Demo<br />
* How Recurring Payments Work<br />
* Recurring Payments Terms<br />
* Recurring Payments With Express Checkout<br />
* Options for Creating a Recurring Payments Profile<br />
* Recurring Payments Profile Status<br />
* Getting Recurring Payments Profile Information<br />
* Modifying a Recurring Payments Profile<br />
* Billing the Outstanding Amount of a Profile<br />
* Recurring Payments Notifications</p>
<p>Source from <a href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;content_ID=developer/e_howto_api_ECRecurringPayments">paypal</a></p>
<p>Additional source: http://articles.techrepublic.com.com/5100-10878_11-5331883.html</p>
<p>For <strong>Recurring Payments Notifications, </strong>you can use IPN. Merchants are notified of certain events through IPN. For recurring payments profiles created using Express Checkout, buyers are also notified of specific events by email.</p>
<p>To activate the IPN, you need to login to your account and activate it from &#8220;Instant Payment Notification Preferences&#8221; Menu.</p>
<p>Once payment, subscription started, or subscription ended it will execute the url you entered in IPN setting.</p>
<p>Here are the request from paypal for recurring payment:</p>
<p><strong>Pay<br />
</strong><br />
transaction_subject:, payment_date:00:24:20 Jan 29, 2010 PST, txn_type:subscr_payment, subscr_id:I-TR8AEDTYY3A3, last_name:,,<br />
residence_country:ID, payment_gross:0.10, mc_currency:USD, business:myemail@domain.com, payment_type:instant,<br />
protection_eligibility:Ineligible, verify_sign:AwVFRrppcBWp.SbFNfxVhWwgMJq1AzhZhdCLslBXMKqUWPTs7OhhthbB,<br />
payer_status:verified, payer_email:client@domain.com, txn_id:9E184006CH967554N, receiver_email:myemail@domain.com,<br />
first_name:Adri, payer_id:BRF4CDPWN84AC, receiver_id:DVFZ59JCMFVEN,payment_status:Completed,payment_fee:0.10, mc_fee:0.10, mc_gross:0.10, charset:windows-1252, notify_version:2.9,<br />
<strong></strong></p>
<p><strong>subscribe</strong></p>
<p>txn_type:subscr_signup, subscr_id:I-TR8AEDTYY3A3, last_name:,, residence_country:ID, mc_currency:USD,<br />
business:myemail@domain.com, amount3:0.10, recurring:1, verify_sign:A8s9ZB.gPMzpWoypvEK3Oi8kH04SA6rxIBluaeZfMSHesjkeOATMaJRe,<br />
payer_status:verified, payer_email:client@domain.com, first_name:Adri, receiver_email:myemail@domain.com, payer_id:BRF4CDPWN84AC, reattempt:1, subscr_date:00:24:19 Jan 29, 2010 PST, charset:windows-1252, notify_version:2.9, period3:1 M, mc_amount3:0.10,</p>
<p><strong>cancel<br />
</strong><br />
txn_type:subscr_cancel, subscr_id:I-TR8AEDTYY3A3, last_name:,, residence_country:ID, mc_currency:USD, business:myemail@domain.com, amount3:0.10, recurring:1, verify_sign:AwLeRoV0CcJ4bqIPyyj4pN2QzIoEA1eWFEwodSF46c0b-.d2eIQHFjiE,<br />
payer_status:verified, payer_email:client@domain.com, first_name:Adri, receiver_email:myemail@domain.com,<br />
payer_id:BRF4CDPWN84AC, reattempt:1, subscr_date:00:24:19 Jan 29, 2010 PST, charset:windows-1252, notify_version:2.9, period3:1 M, mc_amount3:0.10,</p>
<p>There are two variable you need to check <strong>txn_type</strong> and <strong>subscr_id. </strong></p>
<p>You can see that <strong>txn_type<strong> </strong></strong>can be subscr_payment, subscr_signup, and subscr_cancel</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/handling-paypal-recurring-payments/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

