<?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>Codelab Blog &#187; PHP</title>
	<atom:link href="http://blog.codelab.co.nz/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codelab.co.nz</link>
	<description>Technical Articles and News from Codelab Ltd</description>
	<lastBuildDate>Tue, 17 Jan 2012 13:10:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Bluehost wont allow gmail SMTP connections</title>
		<link>http://blog.codelab.co.nz/2010/01/12/bluehost-wont-allow-gmail-smtp-connections/</link>
		<comments>http://blog.codelab.co.nz/2010/01/12/bluehost-wont-allow-gmail-smtp-connections/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 11:24:44 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=166</guid>
		<description><![CDATA[According to bluehost, you cannot send emails through SMTP connections from web applications hosted on bluehost.   They only allow sending through their own SMTP servers. The problem I had was trying to send emails in Magento using GMAIL (Google Apps) using the code from this forum: http://www.magentocommerce.com/boards/viewthread/1073/ The work around is that I setup a [...]]]></description>
			<content:encoded><![CDATA[<p>According to bluehost, you cannot send emails through SMTP connections from web applications hosted on bluehost.   They only allow sending through their own SMTP servers.</p>
<p>The problem I had was trying to send emails in Magento using GMAIL (Google Apps) using the code from this forum:</p>
<p><a href="http://www.magentocommerce.com/boards/viewthread/1073/">http://www.magentocommerce.com/boards/viewthread/1073/</a></p>
<p>The work around is that I setup a email account in Bluehost the same as the email I use in Google Apps.  I then modified the code in Magento to send out using bluehost&#8217;s SMTP servers:</p>
<p>For example:</p>
<p><strong>Outgoing Mail Server: </strong> (SSL) boxnumber.bluehost.com<em> (server requires authentication)</em><br />
<strong>Supported Incoming Mail Protocols:</strong></p>
<ul>
<li>POP3: port 110</li>
<li>POP3S (SSL/TLS): port 995</li>
<li>IMAP: port 143</li>
<li>IMAPS (SSL/TLS): port 993</li>
</ul>
<p><strong>Supported Outgoing Mail Protocols:</strong></p>
<ul>
<li>SMTP: port 26</li>
<li>SMTPS (SSL/TLS): port 465</li>
</ul>
<p>And it works, it sends the email out to the customers with the right email address sent from bluehost&#8217;s local SMTP servers, so when customers reply to the email address it will arrive in my google apps mail box.</p>
<p><em><strong>References:</strong></em></p>
<p><a href="http://drupal.org/node/458044">http://drupal.org/node/458044</a></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var gaJsHost = ((&#8220;https:&#8221; == document.location.protocol) ? &#8220;https://ssl.&#8221; : &#8220;http://www.&#8221;);<br />
document.write(unescape(&#8220;%3Cscript src=&#8217;&#8221; + gaJsHost + &#8220;google-analytics.com/ga.js&#8217; type=&#8217;text/javascript&#8217;%3E%3C/script%3E&#8221;));<br />
&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
try {<br />
var pageTracker = _gat._getTracker(&#8220;UA-4995672-4&#8243;);<br />
pageTracker._trackPageview();<br />
} catch(err) {}&lt;/script&gt;</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/01/12/bluehost-wont-allow-gmail-smtp-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SimplePie Joomla Proxy Issue</title>
		<link>http://blog.codelab.co.nz/2009/06/19/simplepie-joomla-proxy-issue/</link>
		<comments>http://blog.codelab.co.nz/2009/06/19/simplepie-joomla-proxy-issue/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 00:43:50 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=133</guid>
		<description><![CDATA[The issue I had with a particular joomla site is that I could not load external RSS feeds.   The error was &#8220;Could not connect to {server}&#8221;.   RSS Feed load failed.   This was caused in the SimplePie.php class around line 6601. Steps to resolve: I enabled the cUrl extension in php.ini (running on a IIS platform) [...]]]></description>
			<content:encoded><![CDATA[<p>The issue I had with a particular joomla site is that I could not load external RSS feeds.   The error was &#8220;Could not connect to {server}&#8221;.   RSS Feed load failed.   This was caused in the SimplePie.php class around line 6601.</p>
<p>Steps to resolve:</p>
<p>I enabled the cUrl extension in php.ini (running on a IIS platform)</p>
<p>Changed the code around line 6536:</p>
<p>curl_setopt($fp, CURLOPT_PROXY, $ip);<br />
curl_setopt($fp, CURLOPT_PROXYPORT, $port);<br />
curl_setopt($fp, CURLOPT_PROXYUSERPWD, $login . &#8216;:&#8217; . $passwd);</p>
<p>where $ip is the proxy IP Address, $port is the port and $login:$password is the proxy authentication.</p>
<p>After this, I can load in external RSS feeds! YAY</p>
<p><em><strong>References:</strong></em></p>
<p><a href="http://www.phpdig.net/ref/rn11re189.html">http://www.phpdig.net/ref/rn11re189.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2009/06/19/simplepie-joomla-proxy-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding PHP Executable without contacting Host Provider</title>
		<link>http://blog.codelab.co.nz/2009/03/01/finding-php-executable-without-contacting-host-provider/</link>
		<comments>http://blog.codelab.co.nz/2009/03/01/finding-php-executable-without-contacting-host-provider/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 09:25:41 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=84</guid>
		<description><![CDATA[Came across a interesting issue with running a script via a CRON job.   I needed to find out what the path is to the PHP executable.   I could make a educated guess and attempt to try /usr/bin/php, but I find a few ways this could be done. Use the System function and execute the ls [...]]]></description>
			<content:encoded><![CDATA[<p>Came across a interesting issue with running a script via a CRON job.   I needed to find out what the path is to the PHP executable.   I could make a educated guess and attempt to try /usr/bin/php, but I find a few ways this could be done.</p>
<ol>
<li>Use the System function and execute the ls command to find the binary</li>
<li>Use SSH access and action the command whereis php</li>
</ol>
<p><em><strong>References:</strong></em></p>
<p><a href="http://uk3.php.net/system">http://uk3.php.net/system</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2009/03/01/finding-php-executable-without-contacting-host-provider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

