<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for PHP Trivandrum</title>
	<atom:link href="http://www.php-trivandrum.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-trivandrum.org</link>
	<description>Get addicted to PHP</description>
	<lastBuildDate>Fri, 12 Mar 2010 02:43:13 +0530</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Posting to wordpress using php cli and xmlrpc by jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/posting-to-wordpress-using-php-cli-and-xmlrpc/comment-page-1/#comment-13940</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Fri, 12 Mar 2010 02:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/code-snippets/posting-to-wordpress-using-php-cli-and-xmlrpc/#comment-13940</guid>
		<description>I think it is due to some browsers or some other network problems, that the content is opened in the browser. Just try right click and choose save link as.</description>
		<content:encoded><![CDATA[<p>I think it is due to some browsers or some other network problems, that the content is opened in the browser. Just try right click and choose save link as.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Posting to wordpress using php cli and xmlrpc by Petra</title>
		<link>http://www.php-trivandrum.org/code-snippets/posting-to-wordpress-using-php-cli-and-xmlrpc/comment-page-1/#comment-13929</link>
		<dc:creator>Petra</dc:creator>
		<pubDate>Thu, 11 Mar 2010 01:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/code-snippets/posting-to-wordpress-using-php-cli-and-xmlrpc/#comment-13929</guid>
		<description>Can´t download XML WpPost.
And is there an example, how to use?

Petra</description>
		<content:encoded><![CDATA[<p>Can´t download XML WpPost.<br />
And is there an example, how to use?</p>
<p>Petra</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Open PHP-MyProfiler by jijutm</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-13924</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Wed, 10 Mar 2010 18:08:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-13924</guid>
		<description>&lt;a href=&quot;#comment-13921&quot; rel=&quot;nofollow&quot;&gt;@soussou97&lt;/a&gt; 
The answer is written in my post, anyway to repeat the stuff.. &quot;Integration into an application should be quite simple, as including into the header or config, or just any where after the database configuration is defined, and then immediately creating a global $profiler&quot; with the same parameters that your scripts use to connect to the database. Should make sure that the connection your existing code makes is not forcing a new connection on each invokation.</description>
		<content:encoded><![CDATA[<p><a href="#comment-13921">@soussou97</a><br />
The answer is written in my post, anyway to repeat the stuff.. &#8220;Integration into an application should be quite simple, as including into the header or config, or just any where after the database configuration is defined, and then immediately creating a global $profiler&#8221; with the same parameters that your scripts use to connect to the database. Should make sure that the connection your existing code makes is not forcing a new connection on each invokation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Binary tree in MySQL for MLM by jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-13923</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Wed, 10 Mar 2010 18:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-13923</guid>
		<description>I would agree that this seems to fall in the same concept. But was written to assist in academic interests to help understand Binary Tree which is used heavily in Multilevel Marketing systems</description>
		<content:encoded><![CDATA[<p>I would agree that this seems to fall in the same concept. But was written to assist in academic interests to help understand Binary Tree which is used heavily in Multilevel Marketing systems</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Open PHP-MyProfiler by soussou97</title>
		<link>http://www.php-trivandrum.org/open-php-myprofiler/comment-page-1/#comment-13921</link>
		<dc:creator>soussou97</dc:creator>
		<pubDate>Wed, 10 Mar 2010 15:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?page_id=145#comment-13921</guid>
		<description>Hi;

I realize of the load tests and would like to know how I can used this profiler  ?

regards</description>
		<content:encoded><![CDATA[<p>Hi;</p>
<p>I realize of the load tests and would like to know how I can used this profiler  ?</p>
<p>regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Binary tree in MySQL for MLM by Viktor</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-13878</link>
		<dc:creator>Viktor</dc:creator>
		<pubDate>Thu, 04 Mar 2010 17:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-13878</guid>
		<description>nice share ! is this an application of nested set concept?</description>
		<content:encoded><![CDATA[<p>nice share ! is this an application of nested set concept?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on php MsSQL Backup by jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/php-mssql-backup/comment-page-1/#comment-13818</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Fri, 19 Feb 2010 17:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=982#comment-13818</guid>
		<description>&lt;a href=&quot;#comment-13816&quot; rel=&quot;nofollow&quot;&gt;@lkaiman&lt;/a&gt; 
I am not sure, you asking for backup of MySQL or MSSQL ?, if it is MySQL you dont need to bother about creating the INSERT statements for backups, better think about writing csv output.</description>
		<content:encoded><![CDATA[<p><a href="#comment-13816">@lkaiman</a><br />
I am not sure, you asking for backup of MySQL or MSSQL ?, if it is MySQL you dont need to bother about creating the INSERT statements for backups, better think about writing csv output.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on php MsSQL Backup by lkaiman</title>
		<link>http://www.php-trivandrum.org/code-snippets/php-mssql-backup/comment-page-1/#comment-13816</link>
		<dc:creator>lkaiman</dc:creator>
		<pubDate>Fri, 19 Feb 2010 13:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=982#comment-13816</guid>
		<description>hi,

...scuse me for my english...

how do you proceed for make a backup with a data type &quot;timestamp&quot; ?

It is in this part:
function buildInsertQuery($a, $table, $struct){
	
	// do some value escaping
	foreach($a as $field =&gt; $value){
		switch($struct[$field][&#039;type&#039;]){
			case &#039;varchar&#039;:
			case &#039;nchar&#039;:
			case &#039;char&#039;:
			case &#039;text&#039;:
			case &#039;datetime&#039;:
				if(!is_null($value)) $a[$field] = &quot;&#039;&quot; . str_replace(&quot;&#039;&quot;,&quot;&#039;&#039;&quot;, $value) . &quot;&#039;&quot;;
				elseif($struct[$field][&#039;null&#039;] == &#039;NO&#039;) $a[$field] = &quot;&#039;&#039;&quot;;
				else  $a[$field] = &quot;NULL&quot;;
			break;	
			case &#039;timestamp&#039;: $a[$field]=&#039;?????????????&#039;; break;
			case &#039;numeric&#039;:
			case &#039;int&#039;:
				$a[$field] = sprintf(&quot;%d&quot;, $value);
			break;
		}
	}
	
	return &#039;INSERT INTO [&#039;.$table.&#039;] ([&#039;.implode(&#039;],[&#039;, array_keys($a)).&#039;]) VALUES (&#039;.implode(&#039;,&#039;,array_values($a)).&#039;);&#039;;
}</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>&#8230;scuse me for my english&#8230;</p>
<p>how do you proceed for make a backup with a data type &#8220;timestamp&#8221; ?</p>
<p>It is in this part:<br />
function buildInsertQuery($a, $table, $struct){</p>
<p>	// do some value escaping<br />
	foreach($a as $field =&gt; $value){<br />
		switch($struct[$field]['type']){<br />
			case &#8216;varchar&#8217;:<br />
			case &#8216;nchar&#8217;:<br />
			case &#8216;char&#8217;:<br />
			case &#8216;text&#8217;:<br />
			case &#8216;datetime&#8217;:<br />
				if(!is_null($value)) $a[$field] = &#8220;&#8216;&#8221; . str_replace(&#8221;&#8216;&#8221;,&#8221;&#8221;&#8221;, $value) . &#8220;&#8216;&#8221;;<br />
				elseif($struct[$field]['null'] == &#8216;NO&#8217;) $a[$field] = &#8220;&#8221;&#8221;;<br />
				else  $a[$field] = &#8220;NULL&#8221;;<br />
			break;<br />
			case &#8216;timestamp&#8217;: $a[$field]=&#8217;?????????????&#8217;; break;<br />
			case &#8216;numeric&#8217;:<br />
			case &#8216;int&#8217;:<br />
				$a[$field] = sprintf(&#8221;%d&#8221;, $value);<br />
			break;<br />
		}<br />
	}</p>
<p>	return &#8216;INSERT INTO ['.$table.'] (['.implode('],[', array_keys($a)).']) VALUES (&#8217;.implode(&#8217;,',array_values($a)).&#8217;);&#8217;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Convert MySQL Database to SQLite3 Database by jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/convert-mysql-database-to-sqlite3-database/comment-page-1/#comment-13812</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Thu, 18 Feb 2010 17:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=959#comment-13812</guid>
		<description>Yea, there was some sort of file type error, and the whole zipped content was being misinterpreted by most of the browsers. I just redone one fresh upload and tested on the same.</description>
		<content:encoded><![CDATA[<p>Yea, there was some sort of file type error, and the whole zipped content was being misinterpreted by most of the browsers. I just redone one fresh upload and tested on the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Convert MySQL Database to SQLite3 Database by Sven</title>
		<link>http://www.php-trivandrum.org/code-snippets/convert-mysql-database-to-sqlite3-database/comment-page-1/#comment-13809</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Wed, 17 Feb 2010 13:29:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=959#comment-13809</guid>
		<description>Hi jijutm,

The download doesn&#039;t seem to be working.  If I try to unzip, I get a message that the archive is corrupt.
Could you please check the file?
Would love to use your script...
Thanks!

Sven</description>
		<content:encoded><![CDATA[<p>Hi jijutm,</p>
<p>The download doesn&#8217;t seem to be working.  If I try to unzip, I get a message that the archive is corrupt.<br />
Could you please check the file?<br />
Would love to use your script&#8230;<br />
Thanks!</p>
<p>Sven</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Question on wordpress script by jijutm</title>
		<link>http://www.php-trivandrum.org/blogroll/question-on-wordpress-script/comment-page-1/#comment-13784</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Sun, 07 Feb 2010 20:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=977#comment-13784</guid>
		<description>See my post &lt;a href=&quot;http://www.php-trivandrum.org/code-snippets/posting-to-wordpress-using-php-cli-and-xmlrpc/&quot; rel=&quot;nofollow&quot;&gt;Posting to wordpress using php cli and xmlrpc&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>See my post <a href="http://www.php-trivandrum.org/code-snippets/posting-to-wordpress-using-php-cli-and-xmlrpc/">Posting to wordpress using php cli and xmlrpc</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Prototype based date picker by jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/prototype-based-date-picker/comment-page-1/#comment-13783</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Sun, 07 Feb 2010 17:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=888#comment-13783</guid>
		<description>Range selection was not a requirement for the need where we used it originally.</description>
		<content:encoded><![CDATA[<p>Range selection was not a requirement for the need where we used it originally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on php MsSQL Backup by Undisclosed</title>
		<link>http://www.php-trivandrum.org/code-snippets/php-mssql-backup/comment-page-1/#comment-13782</link>
		<dc:creator>Undisclosed</dc:creator>
		<pubDate>Sun, 07 Feb 2010 01:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=982#comment-13782</guid>
		<description>he used the same technique in the end and it worked</description>
		<content:encoded><![CDATA[<p>he used the same technique in the end and it worked</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL vs MsSQL &#8211; comparisons never end by Undisclosed</title>
		<link>http://www.php-trivandrum.org/general-articles/mysql-vs-mssql-comparisons-never-end/comment-page-1/#comment-13780</link>
		<dc:creator>Undisclosed</dc:creator>
		<pubDate>Sat, 06 Feb 2010 14:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/code-snippets/mysql-vs-mssql-comparisons-never-end/#comment-13780</guid>
		<description>Well I agree but I contemplate the list inform should have more info then it has.</description>
		<content:encoded><![CDATA[<p>Well I agree but I contemplate the list inform should have more info then it has.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Prototype based date picker by Sun Location</title>
		<link>http://www.php-trivandrum.org/code-snippets/prototype-based-date-picker/comment-page-1/#comment-13778</link>
		<dc:creator>Sun Location</dc:creator>
		<pubDate>Fri, 05 Feb 2010 17:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=888#comment-13778</guid>
		<description>Nice script, but it is possible to select date interval?</description>
		<content:encoded><![CDATA[<p>Nice script, but it is possible to select date interval?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on php MsSQL Backup by High School</title>
		<link>http://www.php-trivandrum.org/code-snippets/php-mssql-backup/comment-page-1/#comment-13774</link>
		<dc:creator>High School</dc:creator>
		<pubDate>Thu, 04 Feb 2010 20:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=982#comment-13774</guid>
		<description>Great article . Will definitely apply it to my blog.Thanks.</description>
		<content:encoded><![CDATA[<p>Great article . Will definitely apply it to my blog.Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Convert MySQL Database to SQLite3 Database by jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/convert-mysql-database-to-sqlite3-database/comment-page-1/#comment-13769</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Sun, 31 Jan 2010 14:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=959#comment-13769</guid>
		<description>Thanks for the suggestion, I have updated the script with the suggested correction. Glad that some one is using my scripts</description>
		<content:encoded><![CDATA[<p>Thanks for the suggestion, I have updated the script with the suggested correction. Glad that some one is using my scripts</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Convert MySQL Database to SQLite3 Database by Ruud Altenburg</title>
		<link>http://www.php-trivandrum.org/code-snippets/convert-mysql-database-to-sqlite3-database/comment-page-1/#comment-13766</link>
		<dc:creator>Ruud Altenburg</dc:creator>
		<pubDate>Fri, 29 Jan 2010 14:21:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=959#comment-13766</guid>
		<description>Thanks for this script, it seems to be one of the very few to actually take indexes into account! I had a few problems with two indexes though, which I managed to track down. There a typo in this line:

  case (stripos($line, &#039;enum&#039;) !== false):

which should read

  case (stripos($line, &#039;enum(&#039;) !== false):

If the bracket is missing, any key or field name containing &#039;enum&#039; (in my case pagenumber) throws a warning as the regex does not match. In my case this resulted in an invalid sql file.</description>
		<content:encoded><![CDATA[<p>Thanks for this script, it seems to be one of the very few to actually take indexes into account! I had a few problems with two indexes though, which I managed to track down. There a typo in this line:</p>
<p>  case (stripos($line, &#8216;enum&#8217;) !== false):</p>
<p>which should read</p>
<p>  case (stripos($line, &#8216;enum(&#8217;) !== false):</p>
<p>If the bracket is missing, any key or field name containing &#8216;enum&#8217; (in my case pagenumber) throws a warning as the regex does not match. In my case this resulted in an invalid sql file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Convert MySQL Database to SQLite3 Database by Thorisoka</title>
		<link>http://www.php-trivandrum.org/code-snippets/convert-mysql-database-to-sqlite3-database/comment-page-1/#comment-13715</link>
		<dc:creator>Thorisoka</dc:creator>
		<pubDate>Mon, 04 Jan 2010 13:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=959#comment-13715</guid>
		<description>The file seems to be corrupted, could you do something about it?</description>
		<content:encoded><![CDATA[<p>The file seems to be corrupted, could you do something about it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Migration from MySQL to MSSQL our solutions &#8211; Continued by php date to mysql &#124; PHP</title>
		<link>http://www.php-trivandrum.org/code-snippets/migration-from-mysql-to-mssql-our-solutions-continued/comment-page-1/#comment-13695</link>
		<dc:creator>php date to mysql &#124; PHP</dc:creator>
		<pubDate>Tue, 22 Dec 2009 20:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=967#comment-13695</guid>
		<description>[...] PHP Trivandrum » Migration from MySQL to MSSQL our solutions &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] PHP Trivandrum » Migration from MySQL to MSSQL our solutions &#8230; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
