<?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>PHP 4u Web developer - 代码的简化 &#187; ubuntu</title>
	<atom:link href="http://php4u.co.uk/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://php4u.co.uk</link>
	<description>PHP related blog, freelancer to hire!</description>
	<lastBuildDate>Fri, 30 Jul 2010 14:13:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Use PHP and PDO to connect to MS SQL Server (Zend Framework)</title>
		<link>http://php4u.co.uk/2010/06/use-php-and-pdo-to-connect-to-ms-sql-server-zend-framework/</link>
		<comments>http://php4u.co.uk/2010/06/use-php-and-pdo-to-connect-to-ms-sql-server-zend-framework/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 15:03:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Microsoft SQL]]></category>
		<category><![CDATA[PDO]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://php4u.co.uk/?p=126</guid>
		<description><![CDATA[Problems connecting to MS SQL server from Zend Framework? Message: The mssql driver is not currently installed Solution is simple Install pdo_mssql driver: (Ubuntu) ?View Code BASH#sudo apt-get install php5-sybase #sudo /etc/init.d/apache2 restart On Centos you need to install pdo_dblib (any problems check here) It will not reflect in phpinfo() page Trick is to setup [...]]]></description>
			<content:encoded><![CDATA[<p>Problems connecting to MS SQL server from Zend Framework?</p>
<p><strong>Message:</strong> The mssql driver is not currently installed</p>
<p>Solution is simple</p>
<p>Install pdo_mssql driver: (Ubuntu)</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p126code3'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1263"><td class="code" id="p126code3"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#sudo apt-get install php5-sybase</span>
<span style="color: #666666; font-style: italic;">#sudo /etc/init.d/apache2 restart</span></pre></td></tr></table></div>

<p>On Centos you need to install pdo_dblib (any problems check <a href="http://www.richardhyland.com/diary/2009/02/25/two-days-with-pdo-and-my-lack-of-faith-in-the-php-extension-developers/" target="_blank">here</a>)</p>
<p>It will not reflect in phpinfo() page</p>
<p>Trick is to setup connection properly:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p126code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1264"><td class="code" id="p126code4"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$dbAdapter</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Db_Adapter_Pdo_Mssql<span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
 <span style="color: #0000ff;">'host'</span>     <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'192.xxx.xxx.xxx'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// parklife</span>
 <span style="color: #0000ff;">'username'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'xxx'</span><span style="color: #339933;">,</span>
 <span style="color: #0000ff;">'password'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'xxx'</span><span style="color: #339933;">,</span>
 <span style="color: #0000ff;">'dbname'</span>   <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'xxx'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'pdoType'</span>  <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span>  <span style="color: #0000ff;">'dblib'</span> <span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://php4u.co.uk/2010/06/use-php-and-pdo-to-connect-to-ms-sql-server-zend-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20 Linux System Monitoring Tools Every SysAdmin Should Know</title>
		<link>http://php4u.co.uk/2010/03/20-linux-system-monitoring-tools-every-sysadmin-should-know/</link>
		<comments>http://php4u.co.uk/2010/03/20-linux-system-monitoring-tools-every-sysadmin-should-know/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 16:33:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[useful commands]]></category>

		<guid isPermaLink="false">http://php4u.co.uk/?p=116</guid>
		<description><![CDATA[Amazing list found at http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html]]></description>
			<content:encoded><![CDATA[<p>Amazing list found at <a title="Top linux monitoring tools" href="http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html" target="_blank">http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://php4u.co.uk/2010/03/20-linux-system-monitoring-tools-every-sysadmin-should-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql client for Ubuntu</title>
		<link>http://php4u.co.uk/2009/11/mysql-client-for-ubuntu/</link>
		<comments>http://php4u.co.uk/2009/11/mysql-client-for-ubuntu/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 12:52:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://php4u.co.uk/?p=102</guid>
		<description><![CDATA[I&#8217;ve tried TORA, which seems to be nice sudo apt-get install tora sudo apt-get install libqt3-mt-mysql Any others?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve tried TORA, which seems to be nice<br />
<code>sudo apt-get install tora</code><br />
<code>sudo apt-get install libqt3-mt-mysql</code><br />
Any others?<br />
<a title="Db Visualizer" href="http://www.minq.se/products/dbvis/dbvis50.html" target="_blank"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://php4u.co.uk/2009/11/mysql-client-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Mail problem on Ubuntu</title>
		<link>http://php4u.co.uk/2009/05/php-mail-problem-on-ubuntu/</link>
		<comments>http://php4u.co.uk/2009/05/php-mail-problem-on-ubuntu/#comments</comments>
		<pubDate>Fri, 29 May 2009 14:39:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://php4u.co.uk/?p=89</guid>
		<description><![CDATA[I&#8217;ve installed fresh version of Ubuntu 9.04 with Lamp, but I couldn&#8217;t send emails outside. Problem was SMTP auth of outgoing server, spending time found http://dbaron.org/linux/sendmail who made my day. Thanks]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve installed fresh version of Ubuntu 9.04 with Lamp, but I couldn&#8217;t send emails outside.</p>
<p>Problem was SMTP auth of outgoing server, spending time found <a title="Sendmail SMTP conf" href="http://dbaron.org/linux/sendmail" target="_blank">http://dbaron.org/linux/sendmail</a> who made my day. Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://php4u.co.uk/2009/05/php-mail-problem-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.671 seconds -->
