                    <?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>Way&#039;s Blog &#187; PHP</title>
	<atom:link href="http://way.cubeforge.net/blog/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://way.cubeforge.net/blog</link>
	<description>Hong Kong Adobe Flex Developer</description>
	<lastBuildDate>Fri, 06 Jan 2012 04:04:59 +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>PHP+MDB2+MSSQL+Window</title>
		<link>http://way.cubeforge.net/blog/2008/10/phpmdb2mssqlwindow/</link>
		<comments>http://way.cubeforge.net/blog/2008/10/phpmdb2mssqlwindow/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 14:24:23 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[Final Year Project]]></category>
		<category><![CDATA[MDB2]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Window]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=207</guid>
		<description><![CDATA[今日係度SETUP個DB SERVER整左成日都用唔到MDB2 去 connect mssql server 最後搵左成哥哥出手相救.. 原來係因為DLL 問題&#8230; 要搵一個ntwdblib.dll from mssql 去replacePHP原本個一個先用到. Special thanks to Shing ~ http://www.akamarketing.com/blog/99-php-sql-server-connection-problems-mssql_connect-functionmssql-connect-unable-to-connect-to-server.html http://bugs.php.net/bug.php?id=38849]]></description>
			<content:encoded><![CDATA[<p>今日係度SETUP個DB SERVER整左成日都用唔到MDB2 去 connect mssql server</p>
<p>最後搵左成哥哥出手相救.. 原來係因為DLL 問題&#8230; 要搵一個ntwdblib.dll from mssql 去replacePHP原本個一個先用到.</p>
<p>Special thanks to Shing ~</p>
<p><a href="http://www.akamarketing.com/blog/99-php-sql-server-connection-problems-mssql_connect-functionmssql-connect-unable-to-connect-to-server.html">http://www.akamarketing.com/blog/99-php-sql-server-connection-problems-mssql_connect-functionmssql-connect-unable-to-connect-to-server.html</a></p>
<p><a href="http://bugs.php.net/bug.php?id=38849">http://bugs.php.net/bug.php?id=38849</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2008/10/phpmdb2mssqlwindow/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP with using Gmail SMTP</title>
		<link>http://way.cubeforge.net/blog/2008/09/php-with-using-gmail-smtp/</link>
		<comments>http://way.cubeforge.net/blog/2008/09/php-with-using-gmail-smtp/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 14:37:01 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[Other Technologies]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=96</guid>
		<description><![CDATA[If you want to use gmail smtp server in PHP, php mailer is a good choice for you. Here is the example: include(&#8220;class.phpmailer.php&#8221;); $mail = new PHPMailer (); $mail-&#62;IsSMTP (); $mail-&#62;SMTPAuth   = true; $mail-&#62;SMTPSecure = &#8220;ssl&#8221;; $mail-&#62;Host = &#8220;smtp.gmail.com&#8221;; $mail-&#62;Port  = 465; $mail-&#62;Mailer= &#8220;smtp&#8221;; $mail-&#62;Username   = &#8220;username@gmail.com&#8221;; $mail-&#62;Password   &#62;= &#8220;password&#8221;; $mail-&#62;AddReplyTo (&#8220;Reply [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to use gmail smtp server in PHP, <a href="http://sourceforge.net/projects/phpmailer/">php mailer</a> is a good choice for you. Here is the example:</p>
<blockquote><p>include(&#8220;class.phpmailer.php&#8221;);<br />
$mail = new PHPMailer ();<br />
$mail-&gt;IsSMTP ();<br />
$mail-&gt;SMTPAuth   = true;<br />
$mail-&gt;SMTPSecure = &#8220;ssl&#8221;;<br />
$mail-&gt;Host = &#8220;smtp.gmail.com&#8221;;<br />
$mail-&gt;Port  = 465;<br />
$mail-&gt;Mailer= &#8220;smtp&#8221;;<br />
$mail-&gt;Username   = &#8220;username@gmail.com&#8221;;<br />
$mail-&gt;Password   &gt;= &#8220;password&#8221;;<br />
$mail-&gt;AddReplyTo (&#8220;Reply Email&#8221;, &#8220;Recipient Name&#8221;);<br />
$mail-&gt;From = &#8220;sender@gmail.com&#8221;;<br />
$mail-&gt;FromName = &#8220;Sender Name&#8221;;<br />
$mail-&gt;Subject = &#8220;Email Subject&#8221;;<br />
$mail-&gt;Body = &#8220;Email Content&#8230;&#8221;;<br />
$mail-&gt;WordWrap = 50;<br />
$mail-&gt;AddAddress (&#8220;receiver@gmail.com&#8221;, &#8220;Receiver Name&#8221;);<br />
$mail-&gt;IsHTML (true);<br />
$mail-&gt;Send ();</p></blockquote>
<p>However, these simple codes could only work on PHP with enabling the ssl function. If not, you will probably find the warning message in the log file:</p>
<blockquote><p><em>Warning: fsockopen() [function.fsockopen]: unable to connect to </em><a href="ssl://storage.msn.com:443/"><em>ssl://smtp.gmail.com:465</em></a><em> (Unable to find the socket transport &#8220;ssl&#8221; &#8211; did you forget to enable it when you configured PHP?)</em></p></blockquote>
<p>To solve this problem, you have to make sure your php.ini including <em><strong>extension=php_openssl.dll</strong> </em>(of course the file should be placed in php extension directory)<em> </em>and copy both <strong><em>libeay32.dll</em></strong> and <strong><em>ssleay32.dll</em></strong> from php directory to apache bin directory.</p>
<p>References:</p>
<p><a href="http://blog.sunflier.com/?p=572">http://blog.sunflier.com/?p=572</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2008/09/php-with-using-gmail-smtp/feed/</wfw:commentRss>
		<slash:comments>1633</slash:comments>
		</item>
	</channel>
</rss>

