<?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>Mental notes to myself &#187; PHP</title>
	<atom:link href="http://livebookmark.net/journal/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://livebookmark.net/journal</link>
	<description>web, money and etc.</description>
	<lastBuildDate>Tue, 08 Feb 2011 21:41:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Gurus in Montreal &#8211; I&#8217;m looking for 3 of them!</title>
		<link>http://livebookmark.net/journal/2011/02/08/php-gurus-in-montreal-im-looking-for-3-of-them/</link>
		<comments>http://livebookmark.net/journal/2011/02/08/php-gurus-in-montreal-im-looking-for-3-of-them/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 21:21:52 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/?p=200</guid>
		<description><![CDATA[It&#8217;s been quite while since my last post and just realized that, my last post was about the very same thing: Looking for PHP gurus.
You are:
- Living in or around Montreal &#8211; No relocation or telecommute for now, sorry&#8230;
- A PHP and Javascript Guru with at least 3+ years of hands on experience
- Available in [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been quite while since my last post and just realized that, my last post was about the very same thing: Looking for PHP gurus.</p>
<p>You are:<br />
- Living in or around <strong>Montreal</strong> <em>&#8211; No relocation or telecommute for now, sorry&#8230;</em><br />
- A PHP and Javascript Guru with at least 3+ years of hands on experience<br />
- Available in about a month<br />
- Looking for a real technical challenge on a high traffic e-commerce website <em>&#8211; I&#8217;m talking about 100M+ PV</em></p>
<p>This is a permanent position at a reputable Montreal company of 15 years.<br />
The compensation is well <strong>above</strong> the market to consider to make you ditch your current boring job in a blink of an eye.<br />
PS: Refer someone and we hire him/her there is a $1,000 for you for your hard work!</p>
<p>Please send in your cv&#8217;s to harunyayli _at_ gmail  dot  com.</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2011/02/08/php-gurus-in-montreal-im-looking-for-3-of-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking for 2 PHP Developers in Montreal (Senior and Intermediate)</title>
		<link>http://livebookmark.net/journal/2009/10/31/looking-for-2-php-developers-in-montreal-senior-and-intermediate/</link>
		<comments>http://livebookmark.net/journal/2009/10/31/looking-for-2-php-developers-in-montreal-senior-and-intermediate/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 15:36:38 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
				<category><![CDATA[Hiring]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/?p=197</guid>
		<description><![CDATA[I&#8217;m looking again to hire PHP developers.
Common stuff:

You must  be living in or around Montreal!
You are not a freelancer looking for a contract job. These are full time positions.
You must love music, games, pool, PHP   

For Senior PHP Developer

You have at least 5 years of PHP experience within a team.
You are very [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m looking again to hire PHP developers.<br />
Common stuff:</p>
<ul>
<li>You <strong>must  be </strong>living in or around Montreal!</li>
<li>You are not a freelancer looking for a contract job. These are full time positions.</li>
<li>You must love music, games, pool, PHP  <img src='http://livebookmark.net/journal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p>For Senior PHP Developer</p>
<ul>
<li>You have at least 5 years of PHP experience within a team.</li>
<li>You are very proficient in Javascript.</li>
</ul>
<p>For Intermediate PHP Developer</p>
<ul>
<li>You have at least 2 years of PHP <strong>and JAVA</strong> experience within a team.</li>
<li>You can integrate HTML and proficient in CSS. Can handle browser issues, mobile browsers etc.</li>
</ul>
<p>If you are the one, please contact me at hyayli _AT_ touchtunes.com with your resume/CV.</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2009/10/31/looking-for-2-php-developers-in-montreal-senior-and-intermediate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>new pecl/memcache is out with memcache.php</title>
		<link>http://livebookmark.net/journal/2008/09/11/new-peclmemcache-is-out-with-memcachephp/</link>
		<comments>http://livebookmark.net/journal/2008/09/11/new-peclmemcache-is-out-with-memcachephp/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 02:34:11 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
				<category><![CDATA[Memcached]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[pecl]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/?p=176</guid>
		<description><![CDATA[I&#8217;ve just received news from Mikael Johansson that the new builds of pecl/memcache 2.2.4 stable and 3.0.2 beta is out with memcache.php 
go grab your copy!
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just received news from Mikael Johansson that the new builds of pecl/memcache <a href="http://pecl.php.net/package/memcache/2.2.4">2.2.4 stable</a> and <a href="http://pecl.php.net/package/memcache/3.0.2">3.0.2 beta</a> is out with <a href="http://livebookmark.net/memcachephp">memcache.php</a> </p>
<p><a href="http://pecl.php.net/package/memcache">go</a> grab your copy!</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/09/11/new-peclmemcache-is-out-with-memcachephp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>memcache.php flushes servers</title>
		<link>http://livebookmark.net/journal/2008/08/28/memcachephp-flushes-servers/</link>
		<comments>http://livebookmark.net/journal/2008/08/28/memcachephp-flushes-servers/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 19:23:23 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
				<category><![CDATA[Memcached]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[pecl]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/?p=175</guid>
		<description><![CDATA[Your good comments from all over the world about memcache.php is amazing. Thank you all!
I&#8217;ve recently received a contribution from Michael Gauthier. I took the liberty to tweak a bit and now memcache.php can flush individual server (no flush all servers yet). 
File is now updated and you can get it from here.
PS: I didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Your good comments from all over the world about <a href="http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/">memcache.php</a> is amazing. Thank you all!</p>
<p>I&#8217;ve recently received a contribution from Michael Gauthier. I took the liberty to tweak a bit and now memcache.php can flush individual server (no flush all servers yet). </p>
<p>File is now updated and you can get it from <a href="http://livebookmark.net/memcachephp/memcachephp.zip">here</a>.</p>
<p>PS: I didn&#8217;t receive any feedback from pecl guys about my previous update. I&#8217;ll post this to them again. I&#8217;ll announce when this version is in pecl/memcache CVS.</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/08/28/memcachephp-flushes-servers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>memcache.php can delete keys now</title>
		<link>http://livebookmark.net/journal/2008/07/30/memcachephp-can-delete-keys-now/</link>
		<comments>http://livebookmark.net/journal/2008/07/30/memcachephp-can-delete-keys-now/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 14:50:34 +0000</pubDate>
		<dc:creator>Harun Yayli</dc:creator>
				<category><![CDATA[Memcached]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[pecl]]></category>

		<guid isPermaLink="false">http://livebookmark.net/journal/?p=174</guid>
		<description><![CDATA[I&#8217;m receiving great comments from everyone since I&#8217;ve posted my memcache.php script. Thank you everyone.
I&#8217;ve just finished updating the memcache.php to support key deletion.
File is now updated and you can get it from here.
It&#8217;ll be updated on the cvs of pecl/memcache soon.
enjoy.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m receiving great comments from everyone since I&#8217;ve posted my <a href="http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/">memcache.php</a> script. Thank you everyone.<br />
I&#8217;ve just finished updating the memcache.php to support key deletion.<br />
File is now updated and you can get it from <a href="http://livebookmark.net/memcachephp/memcachephp.zip">here</a>.<br />
It&#8217;ll be updated on the cvs of pecl/memcache soon.</p>
<p>enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://livebookmark.net/journal/2008/07/30/memcachephp-can-delete-keys-now/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<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>
		<slash:comments>3</slash:comments>
		</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>
		<slash:comments>2</slash:comments>
		</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>
		<slash:comments>45</slash:comments>
		</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 ...</p></blockquote>
<p>even if you don'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>
		<slash:comments>4</slash:comments>
		</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 &#8211; 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> &#8211; 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>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

