<?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"
	>

<channel>
	<title>Mental notes to myself</title>
	<atom:link href="http://livebookmark.net/journal/feed/" rel="self" type="application/rss+xml" />
	<link>http://livebookmark.net/journal</link>
	<description>web, money and etc.</description>
	<pubDate>Wed, 04 Jun 2008 01:46:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>memcache.php is now part of pecl/memcache</title>
		<link>http://livebookmark.net/journal/2008/06/03/memcachephp-is-now-part-of-peclmemcache/</link>
		<comments>http://livebookmark.net/journal/2008/06/03/memcachephp-is-now-part-of-peclmemcache/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 01:46:18 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
		
		<category><![CDATA[Memcached]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/?p=173</guid>
		<description><![CDATA[I&#8217;m very happy to announce that memcache.php is commited to the CVS of pecl/memcache. Woot woot!
I&#8217;ll be maintaining the code through the time as well. Hope you guys/gals find it useful.
PS: I&#8217;m planning to add more functionality to the memcache.php in the coming days. Candidates:

Delete/Expire a cached value
Move stuff from server to server

Let me know [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m very happy to announce that memcache.php is commited to the <a href="http://cvs.php.net/viewvc.cgi/pecl/memcache/">CVS of pecl/memcache</a>. Woot woot!</p>
<p>I&#8217;ll be maintaining the code through the time as well. Hope you guys/gals find it useful.</p>
<p>PS: I&#8217;m planning to add more functionality to the memcache.php in the coming days. Candidates:</p>
<ul>
<li>Delete/Expire a cached value</li>
<li>Move stuff from server to server</li>
</ul>
<p>Let me know if you have any other ideas.</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/06/03/memcachephp-is-now-part-of-peclmemcache/feed/</wfw:commentRss>
		</item>
		<item>
		<title>memcache.php goes PECL</title>
		<link>http://livebookmark.net/journal/2008/06/02/memcachephp-goes-pecl/</link>
		<comments>http://livebookmark.net/journal/2008/06/02/memcachephp-goes-pecl/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 21:10:53 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
		
		<category><![CDATA[Memcached]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/?p=172</guid>
		<description><![CDATA[After the suggestion by Lukas, I&#8217;ve contacted PECL/memcache authors  Antony Dovgal and Mikael Johansson. Mikael sent me a reply accepting my submission.
I&#8217;m looking forward to the day that memcache.php will appear in the pecl/memcache distribution.
I&#8217;ll keep you posted.
Update on memcache.php: 

Small bug fixed on parsing the bucket Ids.
Distribution license is now PHP license.

]]></description>
			<content:encoded><![CDATA[<p>After the suggestion by Lukas, I&#8217;ve contacted PECL/memcache authors  Antony Dovgal and Mikael Johansson. Mikael sent me a reply accepting my submission.<br />
I&#8217;m looking forward to the day that <a href="http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/">memcache.php</a> will appear in the <a href="http://pecl.php.net/package/memcache">pecl/memcache distribution</a>.<br />
I&#8217;ll keep you posted.</p>
<p>Update on memcache.php: </p>
<ul>
<li>Small bug fixed on parsing the bucket Ids.</li>
<li>Distribution license is now PHP license.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/06/02/memcachephp-goes-pecl/feed/</wfw:commentRss>
		</item>
		<item>
		<title>memcache.php stats like apc.php</title>
		<link>http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/</link>
		<comments>http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/#comments</comments>
		<pubDate>Wed, 21 May 2008 22:15:38 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
		
		<category><![CDATA[Memcached]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/?p=169</guid>
		<description><![CDATA[For a long time I was looking for a nice web interface like the apc.php (comes with the apc&#8217;s source) that displays whole nine yards of stats. The only good tool is memcache-tool from the danga guys. It&#8217;s quite complete but I guess I&#8217;m too lazy to go on the command line.
Anyways, I decided to [...]]]></description>
			<content:encoded><![CDATA[<p>For a long time I was looking for a nice web interface like the apc.php (comes with the apc&#8217;s source) that displays whole nine yards of stats. The only good tool is memcache-tool from the danga guys. It&#8217;s quite complete but I guess I&#8217;m too lazy to go on the command line.</p>
<p>Anyways, I decided to <del>rip</del> write my own. Totally based on the original apc.php (I even recycled some functions) and apart from completeness, here is a memcache.php that you can get stats and dump from multiple memcache servers.<br />
Here is a screenshot:<br />
<span id="more-169"></span><br />
<a href='http://livebookmark.net/journal/wp-content/uploads/2008/05/memcache.png'><img src="http://livebookmark.net/journal/wp-content/uploads/2008/05/memcache-300x177.png" alt="" title="memcache" width="300" height="177" class="aligncenter size-medium wp-image-170" /></a><br />
And here is the the <a href="http://livebookmark.net/memcachephp/memcachephp.zip">source code</a>.</p>
<p>As usual, this piece of software comes with the warnings:<br />
- Don&#8217;t expect something complete, might have bugs and security problems etc.<br />
- Do not install on a prod environment unless you&#8217;re sure!<br />
- Feel free to add stuff to it, I&#8217;ll put it to google code or sf.net soon.<br />
- Feel free to request features. (no I&#8217;m not planning a backup tool , there is memcache-tool for that)<br />
- Enjoy!</p>
<p><strong>Update:</strong> Small parse error is fixed</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>oci_bind_by_name maxlength is not so optional</title>
		<link>http://livebookmark.net/journal/2008/05/06/oci_bind_by_name-maxlength-is-not-so-optional/</link>
		<comments>http://livebookmark.net/journal/2008/05/06/oci_bind_by_name-maxlength-is-not-so-optional/#comments</comments>
		<pubDate>Tue, 06 May 2008 15:22:25 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
		
		<category><![CDATA[Hacks]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/?p=168</guid>
		<description><![CDATA[If you think that the maxlength parameter in the documentation of oci_bind_by_name is optional, see this example and think again.
Lets say you have your column names in an array already and you want to bind them in a loop smartly.


$cols = array('a','b','c');
$data = array(
            [...]]]></description>
			<content:encoded><![CDATA[<p>If you think that the maxlength parameter in the documentation of oci_bind_by_name is optional, see this example and think again.<br />
Lets say you have your column names in an array already and you want to bind them in a loop smartly.<br />
<span id="more-168"></span><br />
<code><br />
$cols = array('a','b','c');<br />
$data = array(<br />
                   array('a'=>1,'b'=>2,'c'=>3),<br />
                   array('a'=>4,'b'=>5,'c'=>6),<br />
           );<br />
$q = "INSERT INTO table_a (a,b,c) VALUES (:a,:b,:c)";<br />
$stmt = oci_parse($db, $q);<br />
foreach ($cols as $key) {<br />
    oci_bind_by_name($stmt, ':'.$key, $$key); // < << optional length<br />
}<br />
// then you want to loop through the data and execute the statment.<br />
foreach($data as $row){<br />
   extract($row);<br />
   oci_execute($stmt, OCI_DEFAULT);<br />
}<br />
oci_free_statement($stmt);<br />
oci_commit($db);<br />
oci_close($db);<br />
</code><br />
actually this would return you a nice obscure </p>
<blockquote><p>Warning: oci_execute(): ORA-01461: can bind a LONG value only for insert into a LONG column in &#8230;</p></blockquote>
<p>even if you don&#8217;t have any LONG value in the col types.<br />
Just add a large enough number to  oci_bind_by_name line:<br />
</code><code>oci_bind_by_name($stmt, ':'.$key, $$key,200)</code></p>
<p>If you know the data type length for each column it&#8217;s better to put that. In my case I wouldn&#8217;t know. So I entered the max of the max col length.</p>
<p>Happy inserting!<br />
PS: I also tried using $row[$key] instead of a lame $$key. However it didn&#8217;t work. I guess it has something to do with the $key changing all at each iteration.</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/05/06/oci_bind_by_name-maxlength-is-not-so-optional/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Is Sun going to buy PHP too?(PHP Quebec 2008)</title>
		<link>http://livebookmark.net/journal/2008/03/14/is-sun-going-to-buy-php-toophp-quebec-2008/</link>
		<comments>http://livebookmark.net/journal/2008/03/14/is-sun-going-to-buy-php-toophp-quebec-2008/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 23:57:58 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/2008/03/14/is-sun-going-to-buy-php-toophp-quebec-2008/</guid>
		<description><![CDATA[It was good 2 days at PHP Quebec Conf here in Montreal. 
A lot of great sessions!!!!
My highlights:
- Great session by Eli White - High Performance PHP &#038; MySQL.
- Really nice 2 sessions by Marc Wandschneider (The I18N and memcached sessions)
Some sessions I&#8217;ve attended were really really bad. I&#8217;m not going to name names 
But [...]]]></description>
			<content:encoded><![CDATA[<p>It was good 2 days at PHP Quebec Conf here in Montreal. </p>
<p>A lot of great sessions!!!!<br />
My highlights:<br />
- Great session by <a href="http://www.eliw.com/">Eli White</a> - High Performance PHP &#038; MySQL.<br />
- Really nice 2 sessions by <a href="http://www.chipmunkninja.com/">Marc Wandschneider</a> (The I18N and memcached sessions)<br />
Some sessions I&#8217;ve attended were really really bad. I&#8217;m not going to name names <img src='http://livebookmark.net/journal/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
But overall, I guess it was worth taking 2 days from work and going to the php conf.</p>
<p>Here is the part about Sun and PHP:<br />
<span id="more-167"></span><br />
At the end of the conferance, there was a small QA session with the conferance speakers. At the begining everyone was shy to ask questions. So some asked phunny questions like, &#8220;What&#8217;s the next big thing you&#8217;d be developing in PHP 6? Is it PDO2?&#8221; things like that. Everybody started laughing and I&#8217;ve (tried) to make a joking reference to &#8220;Sun buying MySQL&#8221; and asked:</p>
<blockquote><p>Is Sun going to buy PHP too?</p></blockquote>
<p>All of a sudden all the speakers, which were lauging to the previous joke, stopped lauging. All the heads turned to me, and someone from speakers asked: </p>
<blockquote><p>How?</p></blockquote>
<p>And actually they took the question seriously, ignoring the fact that I was half lauging when I was asking the question. All of a sudden their faces were stunned. I guess it was the one of the Core developers of PHP said, &#8220;They can buy me&#8221;. It was funny and this released the tension in the room a bit.</p>
<p>Hey guys, hold it! It was just a joke. Why were they that sensitive to the subject? I don&#8217;t know?<br />
What do you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/03/14/is-sun-going-to-buy-php-toophp-quebec-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP APC apc_shm_create error on CLI</title>
		<link>http://livebookmark.net/journal/2008/03/11/php-apc-apc_shm_create-error-on-cli/</link>
		<comments>http://livebookmark.net/journal/2008/03/11/php-apc-apc_shm_create-error-on-cli/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 13:36:18 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
		
		<category><![CDATA[Hacks]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/2008/03/11/php-apc-apc_shm_create-error-on-cli/</guid>
		<description><![CDATA[If you&#8217;re getting an error like this one below on Windows PHP commandline make sure that you are not running an apache server that uses apc on the same machine!

[apc-error] apc_shm_create: shmget(0, 8388608, 658) failed: No error. It is possible that the chosen SHM segment size is higher than the operation system allows. Linux has [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re getting an error like this one below on Windows PHP commandline make sure that you are not running an apache server that uses apc on the same machine!</p>
<blockquote><p>
[apc-error] apc_shm_create: shmget(0, 8388608, 658) failed: No error. It is possible that the chosen SHM segment size is higher than the operation system allows. Linux has usually a default limit of 32MB per segment.
</p></blockquote>
<p>This was hard to figure! Tested with PHP 5.2.5, APC 3.1.0-dev.</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/03/11/php-apc-apc_shm_create-error-on-cli/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Facebook&#8217;s Buggy Spam Detection</title>
		<link>http://livebookmark.net/journal/2008/02/29/facebooks-buggy-spam-detection/</link>
		<comments>http://livebookmark.net/journal/2008/02/29/facebooks-buggy-spam-detection/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 15:05:10 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
		
		<category><![CDATA[Facebook]]></category>

		<category><![CDATA[Funny]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Testing]]></category>

		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/2008/02/29/facebooks-buggy-spam-detection/</guid>
		<description><![CDATA[Oh my! I&#8217;ve heard people getting kicked out of Facebook because they were sending too much messages and facebook considered them as spamming.
One last thing is added to the pile. Now they are claiming the reader of a message is spamming people.
Oh boy, it is funny.
I&#8217;ve logged into Facebook and saw I&#8217;ve received a message. [...]]]></description>
			<content:encoded><![CDATA[<p>Oh my! I&#8217;ve heard people getting kicked out of Facebook because they were sending too much messages and facebook considered them as spamming.<br />
One last thing is added to the pile. Now they are claiming the reader of a message is spamming people.<br />
Oh boy, it is funny.<br />
I&#8217;ve logged into Facebook and saw I&#8217;ve received a message. I clicked the message and boom! There is a red box saying I&#8217;m spamming people with messages and I&#8217;ll be blocked soon if I continue this.<br />
Wait a minute! I&#8217;m not the one writing the message I&#8217;m reading it.<br />
So as a responsible geek, I&#8217;ve send a message to Facebook and here is the result:</p>
<blockquote><p>From: Facebook ([edited])<br />
To: [edited]<br />
Subject: Messages Help: bug in spam detection</p>
<p>Hello,<br />
I clicked on the inbox to see a message that is coming to me. I clicked the message to read it (t=[edited])<br />
I&#8217;ve received a box saying, I&#8217;m spamming.<br />
You&#8217;re algo is buggy. I&#8217;m not sending messages, I&#8217;m reading a spam.<br />
FYI</p></blockquote>
<p>Answer:</p>
<blockquote><p>Facebook Support [edited] wrote:<br />
Hi Harun,</p>
<p>We are aware of the problem that you described and hope to resolve it as soon as possible. Sorry for any inconvenience. Let me know if you have any further questions.</p>
<p>Thanks for contacting Facebook,<br />
James<br />
User Operations<br />
Facebook</p></blockquote>
<p>Well at least they know that somebody made a booboo. Or not?</p>
<p>Test your PHP Facebook. I&#8217;m sure you have bugs in detecting the spam as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/02/29/facebooks-buggy-spam-detection/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Is it Firefox or Zend Debugger? Cookie Standards</title>
		<link>http://livebookmark.net/journal/2008/02/20/is-it-firefox-or-zend-debugger-cookie-standards/</link>
		<comments>http://livebookmark.net/journal/2008/02/20/is-it-firefox-or-zend-debugger-cookie-standards/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 15:50:56 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Standards]]></category>

		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/2008/02/20/is-it-firefox-or-zend-debugger-cookie-standards/</guid>
		<description><![CDATA[I&#8217;m frequently using Zend Debugger and recenlty it started not working with firefox so I decided to investigate. It still works with IE7 and Opera so it was weird to see Firefox being broken with the recent update (2.0.0.12).
When Zend Debugger starts, it sets a cookie on the browser, so when the request passes through [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m frequently using Zend Debugger and recenlty it started not working with firefox so I decided to investigate. It still works with IE7 and Opera so it was weird to see Firefox being broken with the recent update (2.0.0.12).</p>
<p>When Zend Debugger starts, it sets a cookie on the browser, so when the request passes through the Debugger, it&#8217;s caught. Simple enough. </p>
<p>See the cookie that is set by Zend Debugger:<br />
<code>Set-Cookie: ZDEDebuggerPresent=php,phtml,php3; path=/ ZendDebuggerCookie=192.168.33.87%2C127.0.0.1%3A10000%3A0||084|77742D65|0; path=/ SESSdd12cedd715988d11c29f14605e8aa57=rfem27em2jsn3l9ipusujaava2; path=/; domain=.127.0.0.1</code><br />
Nothing looks weird to me&#8230;<br />
But when firefox does a second request it returns only the cookies below:</p>
<p><code>Cookie: ZDEDebuggerPresent=php,phtml,php3; SESSdd12cedd715988d11c29f14605e8aa57=rfem27em2jsn3l9ipusujaava2</code></p>
<p>What happened to ZendDebuggerCookie? The little firefox ate it?<br />
Plain weird.</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/02/20/is-it-firefox-or-zend-debugger-cookie-standards/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ezComponents ready for prod?</title>
		<link>http://livebookmark.net/journal/2008/02/11/ezcomponents-ready-for-prod/</link>
		<comments>http://livebookmark.net/journal/2008/02/11/ezcomponents-ready-for-prod/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 17:47:37 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/2008/02/11/ezcomponents-ready-for-prod/</guid>
		<description><![CDATA[I&#8217;m following what ezComponents doing for sometime now.
Quite nice framework for whatever you need.
I gave a try to write a mysql schema sync.
Real easy to write. only 4-5 lines of code to sync schemas.
It would have been great if it was actually working. The outout sql ddl is not runnable in some cases (syntax errors). [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m following what <a href="http://ez.no/ezcomponents">ezComponents</a> doing for sometime now.<br />
Quite nice framework for whatever you need.<br />
I gave a try to write a mysql schema sync.<br />
Real easy to write. only 4-5 lines of code to sync schemas.<br />
It would have been great if it was actually working. The outout sql ddl is not runnable in some cases (syntax errors). Or the order of the columns are different.<br />
I&#8217;m sure they&#8217;ll fix it soon but this tells me they are not yet ready for production quality.</p>
<p>See the code below, maybe I&#8217;m doing something wrong.<br />
<span id="more-163"></span></p>
<p><code><br />
&lt;?php<br />
require_once "ezcomponents/Base/src/base.php";</p>
<p>function __autoload( $className ){<br />
        ezcBase::autoload( $className );<br />
}</p>
<p>$sourcedb['host']= isset($_POST['sourcedb']['host'])? $_POST['sourcedb']['host']:&#8221;;<br />
$sourcedb['port']= isset($_POST['sourcedb']['port'])? $_POST['sourcedb']['port']:&#8221;;<br />
$sourcedb['user']= isset($_POST['sourcedb']['user'])? $_POST['sourcedb']['user']:&#8221;;<br />
$sourcedb['pass']= isset($_POST['sourcedb']['pass'])? $_POST['sourcedb']['pass']:&#8221;;<br />
$sourcedb['db']= isset($_POST['sourcedb']['db'])? $_POST['sourcedb']['db']:&#8221;;<br />
$destdb['host']= isset($_POST['destdb']['host'])? $_POST['destdb']['host']:&#8221;;<br />
$destdb['port']=  isset($_POST['destdb']['port'])? $_POST['destdb']['port']:&#8221;;<br />
$destdb['user']=  isset($_POST['destdb']['user'])? $_POST['destdb']['user']:&#8221;;<br />
$destdb['pass']=  isset($_POST['destdb']['pass'])? $_POST['destdb']['pass']:&#8221;;<br />
$destdb['db']=  isset($_POST['destdb']['db'])? $_POST['destdb']['db']:&#8221;;</p>
<p>$ddl = null;<br />
if (count($_POST)&gt;0){<br />
	$sdb = ezcDbFactory::create(&#8221;mysql://{$sourcedb['user']}:{$sourcedb['pass']}@{$sourcedb['host']}:{$sourcedb['port']}/{$sourcedb['db']}&#8221;);<br />
	$souceSchema = ezcDbSchema::createFromDb($sdb);</p>
<p>	$ddb = ezcDbFactory::create(&#8221;mysql://{$destdb['user']}:{$destdb['pass']}@{$destdb['host']}:{$destdb['port']}/{$destdb['db']}&#8221;);<br />
	$destSchema = ezcDbSchema::createFromDb($ddb);<br />
	$diffSchema = ezcDbSchemaComparator::compareSchemas( $destSchema,$souceSchema );<br />
	$ddl = $diffSchema-&gt;convertToDDL( $ddb );<br />
}<br />
?&gt;</p>
<p>&lt;html&gt;<br />
&lt;style&gt;<br />
input{<br />
	width:120px;<br />
}<br />
&lt;/style&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt; Schema Comparator for MySQL&lt;/h1&gt;<br />
&lt;p&gt;Compares the source and destination db schemas, gives the DDL to apply to the destination.&lt;/p&gt;<br />
&lt;br /&gt;<br />
&lt;form action=&#8221;#&#8221; method=&#8221;post&#8221;&gt;<br />
&lt;table border=&#8221;1&#8243;&gt;<br />
&lt;tr&gt;&lt;td&gt;</p>
<p>&lt;table&gt;<br />
&lt;tr&gt;&lt;td&gt;Source Db Server: &lt;/td&gt;&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;sourcedb[host]&#8221; value=&#8221;&lt;?php echo $sourcedb['host'];?/&gt;&#8221;/&gt; Port:&lt;input type=&#8221;text&#8221; name=&#8221;sourcedb[port]&#8221; value=&#8221;&lt;?php echo $sourcedb['port'];?/&gt;&#8221;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Source Db Username: &lt;/td&gt;&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;sourcedb[user]&#8221; value=&#8221;&lt;?php echo $sourcedb['user'];?/&gt;&#8221;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Source Db Password: &lt;/td&gt;&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;sourcedb[pass]&#8221; value=&#8221;&lt;?php echo $sourcedb['pass'];?/&gt;&#8221;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Source Db : &lt;/td&gt;&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;sourcedb[db]&#8221; value=&#8221;&lt;?php echo $sourcedb['db'];?/&gt;&#8221;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/td&gt;&lt;td&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;&lt;td&gt;Destination Db Server: &lt;/td&gt;&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;destdb[host]&#8221; value=&#8221;&lt;?php echo $destdb['host'];?/&gt;&#8221;/&gt; Port:&lt;input type=&#8221;text&#8221; name=&#8221;destdb[port]&#8221; value=&#8221;&lt;?php echo $destdb['port'];?/&gt;&#8221;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Destination Db Username: &lt;/td&gt;&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;destdb[user]&#8221; value=&#8221;&lt;?php echo $destdb['user'];?/&gt;&#8221;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Destination Db Password: &lt;/td&gt;&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;destdb[pass]&#8221; value=&#8221;&lt;?php echo $destdb['pass'];?/&gt;&#8221;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Destination Db : &lt;/td&gt;&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;destdb[db]&#8221; value=&#8221;&lt;?php echo $destdb['db'];?/&gt;&#8221;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td colspan=&#8221;2&#8243; align=&#8221;center&#8221;&gt;&lt;input type=&#8221;submit&#8221; value=&#8221;Compare&#8221;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
&lt;pre&gt;<br />
&lt; ?php<br />
	if (count($_POST)&gt;0){<br />
		if ($ddl!=null &#038;&#038; count($ddl)&gt;0){<br />
			echo &#8216;USE &#8216;.$destdb['db'].&#8221;;\n&#8221;;<br />
			foreach($ddl as $lines){<br />
				echo $lines.&#8221;;\n&#8221;;<br />
			}<br />
		}<br />
		else{<br />
			echo &#8216;&#8211; No diff&#8217;;<br />
		}<br />
	}<br />
?&gt;<br />
&lt;/pre&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p></code></p>
<p>Followup:<br />
bug is entered as <a href="http://issues.ez.no/IssueView.php?Id=12538&#038;activeItem=1">http://issues.ez.no/IssueView.php?Id=12538&#038;activeItem=1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/02/11/ezcomponents-ready-for-prod/feed/</wfw:commentRss>
		</item>
		<item>
		<title>You Used PHP to Write WHAT?!</title>
		<link>http://livebookmark.net/journal/2008/02/01/you-used-php-to-write-what/</link>
		<comments>http://livebookmark.net/journal/2008/02/01/you-used-php-to-write-what/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 14:03:59 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
		
		<category><![CDATA[Industry]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[WTF]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/2008/02/01/you-used-php-to-write-what/</guid>
		<description><![CDATA[There is an article on PHP on CIO, bashing it a bit.
PHP may be the most popular Web scripting language in the world. But despite a large collection of nails, not every tool is a hammer. So when should it be used, and when would another dynamic programming language be a better choice? We identify [...]]]></description>
			<content:encoded><![CDATA[<p>There is an article on PHP on CIO, bashing it a bit.</p>
<blockquote><p>PHP may be the most popular Web scripting language in the world. But despite a large collection of nails, not every tool is a hammer. So when should it be used, and when would another dynamic programming language be a better choice? We identify its strengths and weaknesses.</p></blockquote>
<p>For the ones, who doesn&#8217;t know about CIO, their target audience is managerial. not developers.<br />
So potentially reader will be your manager and they&#8217;ll get this info as a reference.<br />
I&#8217;m copy/pasting some parts of it for your convenience. Let&#8217;s assume your manager does not know about PHP (I hope not) and you&#8217;re about to convince him/her to use PHP on a project. What whould he/she think after reading this?</p>
<blockquote><p>When should you use PHP?</p>
<ul>
<li>Creating an intranet site.</li>
<li>Prototyping an application that will be converted to Java or some other language.</li>
<li>Creating a Web database application.</li>
<li>Deploying an inexpensive or quick solution.</li>
<li>Using ready-made apps from Sourceforge.net or other sites.</li>
</ul>
<p>In general you should not use PHP:</p>
<ul>
<li>Where data security is of high importance.</li>
<li>In Shell or automated scripted applications.</li>
<li>In enterprise applications where scalability takes higher precedence than economy.</li>
</ul>
</blockquote>
<p>What a short sight!?!? <a href="http://www.kenhess.com/index2.html">Kenneth Hess</a> the author of the article, is also the new &#8220;On The Desktop&#8221; columnist for Linux Magazine. Honestly, I would not really expect these claims from Ken Hess.</p>
<p>Please share your comment. </p>
<p>Link: <a href="http://www.cio.com/article/176250/You_Used_PHP_to_Write_WHAT_">You Used PHP to Write WHAT?!</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/02/01/you-used-php-to-write-what/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
