<?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>Xyiry PHP Blog &#124; Where Open Source Lives</title>
	<atom:link href="http://php.xyiry.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://php.xyiry.com</link>
	<description>My open source playground</description>
	<lastBuildDate>Wed, 18 Nov 2009 12:06:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Implode array elements</title>
		<link>http://php.xyiry.com/php-implode-array-elements/</link>
		<comments>http://php.xyiry.com/php-implode-array-elements/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 12:02:48 +0000</pubDate>
		<dc:creator>Xyiry</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://php.xyiry.com/?p=47</guid>
		<description><![CDATA[If you are having 1 dimension array and you would like to use this type of array in you mysql query
you can use the PHP implode function.
--------------------------------
Example Array
--------------------------------
echo "&#60;pre&#62;";
print_r($yearSearch);

Array
(
    [0] =1979
    [1] =1980
    [2] =1981
    [3] =1982
    [4] =1983
  [...]]]></description>
			<content:encoded><![CDATA[<pre>If you are having 1 dimension array and you would like to use this type of array in you mysql query
you can use the PHP implode function.
--------------------------------
Example Array
--------------------------------
echo "&lt;pre&gt;";
print_r($yearSearch);

Array
(
    [0] =1979
    [1] =1980
    [2] =1981
    [3] =1982
    [4] =1983
    [5] =1984
    [6] =1985
    [7] =1986
    [8] =1987
    [9] =1988
    [10] =1989
    [11] =1990
    [12] =1991
    [13] =1992
    [14] =1993
)
--------------------------------
Example Implode
--------------------------------
echo  $array = implode(",", $yearSearch);</pre>
]]></content:encoded>
			<wfw:commentRss>http://php.xyiry.com/php-implode-array-elements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux db2cc cannot open display</title>
		<link>http://php.xyiry.com/linux-db2cc-cannot-open-display/</link>
		<comments>http://php.xyiry.com/linux-db2cc-cannot-open-display/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 08:20:13 +0000</pubDate>
		<dc:creator>Xyiry</dc:creator>
				<category><![CDATA[IBM DB2]]></category>

		<guid isPermaLink="false">http://php.xyiry.com/?p=43</guid>
		<description><![CDATA[If you are having problem as mention below, you may try this.
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
Problem Scenario db2cc
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
db2inst1@ubuntu:/home/xyiry$ export DISPLAY=:0.0
db2inst1@ubuntu:/home/xyiry$ db2cc
No protocol specified
Error : Can not open display
db2inst1@ubuntu:/home/xyiry$
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
Problem Solving db2cc
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
Type in this command in terminal.
db2inst1@ubuntu:/home/xyiry$ xhost +
db2inst1@ubuntu:/home/xyiry$ su db2inst1
db2inst1@ubuntu:/home/xyiry$ export DISPLAY=:0.0
db2inst1@ubuntu:/home/xyiry$ db2cc
Hope it works&#8230;
]]></description>
			<content:encoded><![CDATA[<p>If you are having problem as mention below, you may try this.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>Problem Scenario db2cc</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>db2inst1@ubuntu:/home/xyiry$</strong> export DISPLAY=:0.0<br />
<strong>db2inst1@ubuntu:/home/xyiry$</strong> db2cc<br />
No protocol specified</p>
<p>Error : Can not open display<br />
<strong>db2inst1@ubuntu:/home/xyiry$</strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>Problem Solving db2cc</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Type in this command in terminal.</p>
<p><strong>db2inst1@ubuntu:/home/xyiry$</strong> xhost +<br />
<strong>db2inst1@ubuntu:/home/xyiry$</strong> su db2inst1<br />
<strong>db2inst1@ubuntu:/home/xyiry$</strong> export DISPLAY=:0.0<br />
<strong>db2inst1@ubuntu:/home/xyiry$</strong> db2cc</p>
<p>Hope it works&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://php.xyiry.com/linux-db2cc-cannot-open-display/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Copy File</title>
		<link>http://php.xyiry.com/linux-copy-file/</link>
		<comments>http://php.xyiry.com/linux-copy-file/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 12:00:54 +0000</pubDate>
		<dc:creator>Xyiry</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://php.xyiry.com/linux-copy-file/</guid>
		<description><![CDATA[Lets say you are from Server A and you want to copy a file from Server B to Server A.
scp root@SERVER_B_NAME:abc.sql /root
]]></description>
			<content:encoded><![CDATA[<p>Lets say you are from Server A and you want to copy a file from Server B to Server A.</p>
<p>scp root@SERVER_B_NAME:abc.sql /root</p>
]]></content:encoded>
			<wfw:commentRss>http://php.xyiry.com/linux-copy-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete User in Linux</title>
		<link>http://php.xyiry.com/delete-user-in-linux/</link>
		<comments>http://php.xyiry.com/delete-user-in-linux/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 10:12:40 +0000</pubDate>
		<dc:creator>Xyiry</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://php.xyiry.com/delete-user-in-linux/</guid>
		<description><![CDATA[First you need to open up your terminal, and type in &#8220;sudo userdel &#60;username&#62;".
If you would like to remove the home folder of the user account, type in &#8220;sudo rm -r /home/&#60;username&#62;"
]]></description>
			<content:encoded><![CDATA[<p>First you need to open up your terminal, and type in &#8220;<code>sudo userdel &lt;username&gt;".</code><br />
If you would like to remove the home folder of the user account, type in &#8220;<code>sudo rm -r /home/<username>&lt;username&gt;"</username></code></p>
]]></content:encoded>
			<wfw:commentRss>http://php.xyiry.com/delete-user-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add user in linux</title>
		<link>http://php.xyiry.com/how-to-add-user-in-linux/</link>
		<comments>http://php.xyiry.com/how-to-add-user-in-linux/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 10:10:33 +0000</pubDate>
		<dc:creator>Xyiry</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://php.xyiry.com/how-to-add-user-in-linux/</guid>
		<description><![CDATA[Just go to your terminal and type in &#8220;adduser &#60;username&#62;&#8221;, and it will prompt out the password input for you to key in.
xyiry@xyiry-laptop:/etc/skel$ sudo adduser xyiry
Password:
Adding user `xyiry&#8217;…
Adding new group `xyiry&#8217; (1004).
Adding new user `xyiry&#8217; (1004) with group `xyiry&#8217;.
Creating home directory `/home/xyiry&#8217;.
Copying files from `/etc/skel&#8217;
Enter new UNIX password:
Retype new UNIX password:
No password supplied
Enter new UNIX [...]]]></description>
			<content:encoded><![CDATA[<p>Just go to your terminal and type in &#8220;adduser &lt;username&gt;&#8221;, and it will prompt out the password input for you to key in.</p>
<p>xyiry@xyiry-laptop:/etc/skel$ sudo adduser xyiry<br />
Password:<br />
Adding user `xyiry&#8217;…<br />
Adding new group `xyiry&#8217; (1004).<br />
Adding new user `xyiry&#8217; (1004) with group `xyiry&#8217;.<br />
Creating home directory `/home/xyiry&#8217;.<br />
Copying files from `/etc/skel&#8217;<br />
Enter new UNIX password:<br />
Retype new UNIX password:<br />
No password supplied<br />
Enter new UNIX password:<br />
Retype new UNIX password:<br />
passwd: password updated successfully<br />
Changing the user information for xyiry<br />
Enter the new value, or press ENTER for the default<br />
Full Name []: Xyiry<br />
Room Number []: 0<br />
Work Phone []: 012-2643164<br />
Home Phone []: 012-2643164<br />
Other []:<br />
Is the information correct? [y/N] y</p>
]]></content:encoded>
			<wfw:commentRss>http://php.xyiry.com/how-to-add-user-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Start / Stop Mysql Service in Linux</title>
		<link>http://php.xyiry.com/how-to-start-stop-mysql-service-in-linux/</link>
		<comments>http://php.xyiry.com/how-to-start-stop-mysql-service-in-linux/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 23:08:38 +0000</pubDate>
		<dc:creator>Xyiry</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://php.xyiry.com/how-to-start-stop-mysql-service-in-linux/</guid>
		<description><![CDATA[This is how you can start or stop your MySQL service in linux environment.
1)  /etc/init.d/mysql start    &#8212;-To start MySQL service
/etc/init.d/mysql stop     &#8212;-To stop MySQL service
2)  service mysqld start
service mysqld stop
service mysqld restart
]]></description>
			<content:encoded><![CDATA[<p>This is how you can start or stop your MySQL service in linux environment.</p>
<p>1)  /etc/init.d/mysql start    &#8212;-To start MySQL service</p>
<p>/etc/init.d/mysql stop     &#8212;-To stop MySQL service</p>
<p>2)  service mysqld start<br />
service mysqld stop<br />
service mysqld restart</p>
]]></content:encoded>
			<wfw:commentRss>http://php.xyiry.com/how-to-start-stop-mysql-service-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to export db2 table</title>
		<link>http://php.xyiry.com/how-to-export-db2-table/</link>
		<comments>http://php.xyiry.com/how-to-export-db2-table/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 08:53:49 +0000</pubDate>
		<dc:creator>Xyiry</dc:creator>
				<category><![CDATA[IBM DB2]]></category>

		<guid isPermaLink="false">http://php.xyiry.com/how-to-export-db2-table/</guid>
		<description><![CDATA[This is how you export your table in a DB2 Database.
1) First of all make sure you already login as a db2admin or db2 privilege user.
2) Secondly key in  -&#62;    db2 EXPORT TO file.del of DEL &#8216; select * from yourtablename&#8217;
3) You&#8217;re done. It will export your file into a comma [...]]]></description>
			<content:encoded><![CDATA[<p>This is how you export your table in a DB2 Database.</p>
<p>1) First of all make sure you already login as a db2admin or db2 privilege user.</p>
<p>2) Secondly key in  -&gt;    db2 EXPORT TO file.del of DEL &#8216; select * from yourtablename&#8217;</p>
<p>3) You&#8217;re done. It will export your file into a comma separated value file or known as a CSV format file.</p>
<p>By Zairy</p>
]]></content:encoded>
			<wfw:commentRss>http://php.xyiry.com/how-to-export-db2-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to backup your DB2</title>
		<link>http://php.xyiry.com/how-to-backup-your-db2/</link>
		<comments>http://php.xyiry.com/how-to-backup-your-db2/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 08:49:32 +0000</pubDate>
		<dc:creator>Xyiry</dc:creator>
				<category><![CDATA[IBM DB2]]></category>

		<guid isPermaLink="false">http://php.xyiry.com/how-to-backup-your-db2/</guid>
		<description><![CDATA[Hi today I&#8217;m going to share with you on how to backup your db2 database.
I&#8217;m assuming you guys are running db2 on Unix platform.  So make sure you login as a DB2 Administrator.
For my case I logged in as db2inst1
Steps:
1) su db2inst1
2) db2 connect to databasename
3) mkdir /usr/db2backup
4) db2 backup db databasename to /usr/db2backup
So [...]]]></description>
			<content:encoded><![CDATA[<p>Hi today I&#8217;m going to share with you on how to backup your db2 database.</p>
<p>I&#8217;m assuming you guys are running db2 on Unix platform.  So make sure you login as a DB2 Administrator.</p>
<p>For my case I logged in as db2inst1</p>
<p>Steps:</p>
<p>1) su db2inst1</p>
<p>2) db2 connect to databasename</p>
<p>3) mkdir /usr/db2backup</p>
<p>4) db2 backup db databasename to /usr/db2backup</p>
<p>So that&#8217;s all for db2 backup.</p>
<p>By Zairy</p>
]]></content:encoded>
			<wfw:commentRss>http://php.xyiry.com/how-to-backup-your-db2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Cake PHP on Zend Core For Oracle</title>
		<link>http://php.xyiry.com/configure-cake-php-on-zend-core-for-oracle/</link>
		<comments>http://php.xyiry.com/configure-cake-php-on-zend-core-for-oracle/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 08:51:27 +0000</pubDate>
		<dc:creator>Xyiry</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://php.xyiry.com/configure-cake-php-on-zend-core-for-oracle/</guid>
		<description><![CDATA[If you guys are running XAMPP as your apache then its a piece of cake for you to configure cakePHP for the first time.
just open your httpd.conf and look for the following line and uncomment it
 LoadModule rewrite_module modules/mod_rewrite.so
But if you guys are running Zend Core as your apache then you will need a little [...]]]></description>
			<content:encoded><![CDATA[<p>If you guys are running XAMPP as your apache then its a piece of cake for you to configure cakePHP for the first time.</p>
<p>just open your httpd.conf and look for the following line and uncomment it<br />
<strong> LoadModule rewrite_module modules/mod_rewrite.so</strong></p>
<p>But if you guys are running Zend Core as your apache then you will need a little bit more effort to configure your cakePHP for the first time.</p>
<p>Look for these lines in your httpd.conf</p>
<p>1.  LoadModule rewrite_module modules/mod_rewrite.so<br />
<strong>(Uncomment It)</strong><br />
2. &lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride None<br />
&lt;/Directory&gt;<br />
<strong>(Change to this)</strong><br />
&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride None<br />
Order deny,allow<br />
Deny from all<br />
&lt;/Directory&gt;</p>
<p>3.  AllowOverride None <strong>(Change to this) </strong>AllowOverride All</p>
<p>4. Restart you apache service and refresh your browser.</p>
<p>That&#8217;s it, Good Luck</p>
<p>By Zairy</p>
]]></content:encoded>
			<wfw:commentRss>http://php.xyiry.com/configure-cake-php-on-zend-core-for-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to truncate DB2 Table</title>
		<link>http://php.xyiry.com/how-to-truncate-db2-table/</link>
		<comments>http://php.xyiry.com/how-to-truncate-db2-table/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 03:48:27 +0000</pubDate>
		<dc:creator>Xyiry</dc:creator>
				<category><![CDATA[IBM DB2]]></category>

		<guid isPermaLink="false">http://php.xyiry.com/how-to-truncate-db2-table/</guid>
		<description><![CDATA[DB2 Truncate is not as straight forward as Oracle Truncate. If in Oracle you can use &#8220;truncate table &#8220;&#8230;  You may use the below command to truncate table in db2.
alter table schema.table_name activate not logged initially with empty table
]]></description>
			<content:encoded><![CDATA[<p>DB2 Truncate is not as straight forward as Oracle Truncate. If in Oracle you can use &#8220;truncate table &#8220;&#8230;  You may use the below command to truncate table in db2.</p>
<p><span name="intelliTXT" id="intelliTXT"><code>alter table schema.table_name activate not logged initially with empty table</code></span></p>
]]></content:encoded>
			<wfw:commentRss>http://php.xyiry.com/how-to-truncate-db2-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
