<?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>International Open Solutions Centre &#187; php</title>
	<atom:link href="http://www.iosc.net/blog/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iosc.net/blog</link>
	<description>Share your experience and knowledge computer hardware / software / programming / design / news</description>
	<lastBuildDate>Mon, 19 Dec 2011 07:34:12 +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>How to Update Millions of MySQL records from Table A to Table B</title>
		<link>http://www.iosc.net/blog/2009/04/17/how-to-update-millions-of-mysql-records-from-table-a-to-table-b/</link>
		<comments>http://www.iosc.net/blog/2009/04/17/how-to-update-millions-of-mysql-records-from-table-a-to-table-b/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 23:04:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[hundred thousand records]]></category>
		<category><![CDATA[millions records]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[update table]]></category>

		<guid isPermaLink="false">http://www.iosc.net/blog/?p=65</guid>
		<description><![CDATA[Recently I am working on a project where I will need to convert client&#8217;s database with millions of old Paradox/Foxpro records to MySQL and then I have to create a new Web App based on PHP/MySQL to deal with all this old records plus new way of database structuring. When I am trying to update [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I am working on a project where I will need to convert client&#8217;s database with millions of old Paradox/Foxpro records to MySQL and then I have to create a new Web App based on PHP/MySQL to deal with all this old records plus new way of database structuring.</p>
<p>When I am trying to update a customer ID from a table A to table B, I always need to wait for few hours for the server to process it. This is so annoying and waste of time.</p>
<p>Finally I found the answer today where actually I need to INDEX the customer ID before doing the updates. The difference is just so BIG.</p>
<p>With the same command issue at the following, without INDEX it will takes hours to complete BUT after INDEXING then it just need 1.45 sec for 19,638 records!!!</p>
<blockquote><p>UPDATE tel AS t INNER JOIN contact AS c  SET t.cid = c.cid WHERE t.addr_id = c.addr_id AND t.cid = 0;<br />
Query OK, 19638 rows affected (1.45 sec)<br />
Rows matched: 19638  Changed: 19638  Warnings: 0</p></blockquote>
<p>So, now I just perform the update again for full data and let&#8217;s see the results <img src='http://www.iosc.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<blockquote><p>UPDATE tel AS t INNER JOIN contact AS c  SET t.cid = c.cid WHERE t.addr_id = c.addr_id;<br />
Query OK, 0 rows affected (3.55 sec)<br />
Rows matched: 103484  Changed: 0  Warnings: 0</p></blockquote>
<p>That&#8217;s why I say it&#8217;s fun to play with web programming now a days <img src='http://www.iosc.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  lol</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iosc.net/blog/2009/04/17/how-to-update-millions-of-mysql-records-from-table-a-to-table-b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>is your Web Server hacked to be a SPAM server?</title>
		<link>http://www.iosc.net/blog/2008/06/16/is-your-web-server-hacked-to-be-a-spam-server/</link>
		<comments>http://www.iosc.net/blog/2008/06/16/is-your-web-server-hacked-to-be-a-spam-server/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 10:04:39 +0000</pubDate>
		<dc:creator>boyd</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[data_.php]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spammer]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://www.iosc.net/blog/?p=48</guid>
		<description><![CDATA[This morning I just found that my cPanel server sent me a notice by email saying there is a new uploaded CGI/script file trying to use the sendmail function. The file is data_.php This related to one of my website that I have not been updating recently, so I quickly ftp into my server and [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I just found that my cPanel server sent me a notice by email saying there is a new uploaded CGI/script file trying to use the sendmail function. The file is data_.php</p>
<p>This related to one of my website that I have not been updating recently, so I quickly ftp into my server and check it.</p>
<p>I found that this data_.php script is use for GETTING HTTP POSTS from some where and then it will MAIL it out, so, my server will become the email server for the SPAMMER. Luckily I notice about it earlier now and saw this stupid spammer write different php style than me, so I can sure this is not the script that I wrote for myself (lol, I have to deal with thousand of scripts always)</p>
<p>I have report this to the datacentre admin, they are checking for me now that whether where is the security hole. Stay tuned!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iosc.net/blog/2008/06/16/is-your-web-server-hacked-to-be-a-spam-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

