<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="FeedCreator 1.7.2" --><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
    <channel>
        <title>KvZ Comments</title>
        <description>Kevin van Zonneveld's techblog.</description>
        <link>http://kevin.vanzonneveld.net/</link>
        <lastBuildDate>Thu, 31 May 2012 23:40:09 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/kvz-comments" /><feedburner:info uri="kvz-comments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
            <title>Comment by zanzo on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/FUJFqOrKZAI/</link>
            <description>Thanks Kevin,
my problem was the 'PasswordAuthentication'  set to No in the sshd_config.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/FUJFqOrKZAI" height="1" width="1"/&gt;</description>
            <author>zanzo</author>
            <pubDate>Tue, 29 May 2012 10:36:14 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4886</feedburner:origLink></item>
        <item>
            <title>Comment by nelson on: Learning Vim</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/vHwp-nuvvqY/</link>
            <description>I also had some trouble to learn vim. Each feature I learned, though kicked
away another editor. It is today my favorite editor.

It surely pay off to learn a powerful tool like this.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/vHwp-nuvvqY" height="1" width="1"/&gt;</description>
            <author>nelson</author>
            <pubDate>Tue, 29 May 2012 01:43:58 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/learning_vim/#comment_4885</feedburner:origLink></item>
        <item>
            <title>Comment by Bibhujjal on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/6ennX0qL8Ak/</link>
            <description>how to rotate the 
&amp;gt;&amp;gt; /var/log/script_output.log file....do we need to add something in
the line
*/10 * * * * /bin/execute/this/script.sh 2&amp;gt;&amp;amp;1 &amp;gt;&amp;gt;
/var/log/script_output.log&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/6ennX0qL8Ak" height="1" width="1"/&gt;</description>
            <author>Bibhujjal</author>
            <pubDate>Wed, 23 May 2012 06:03:31 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4881</feedburner:origLink></item>
        <item>
            <title>Comment by Mark on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/hw2m01XUxUA/</link>
            <description>Never mind - found it:

'appRunAsGID' =&amp;gt; 1000,
'appRunAsUID' =&amp;gt; 1000,&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/hw2m01XUxUA" height="1" width="1"/&gt;</description>
            <author>Mark</author>
            <pubDate>Sun, 20 May 2012 21:12:15 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4878</feedburner:origLink></item>
        <item>
            <title>Comment by Mark on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/5gmpqHM4rpc/</link>
            <description>Is there a way to specify what user this runs under? When I run a php
daemon, it runs as user '997' and it can't modify/delete some files I would
like it to.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/5gmpqHM4rpc" height="1" width="1"/&gt;</description>
            <author>Mark</author>
            <pubDate>Sun, 20 May 2012 20:30:07 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4877</feedburner:origLink></item>
        <item>
            <title>Comment by Jimmy on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/VIS1WwVYUQ0/</link>
            <description>Kevin, great job!.. Very helpful article. 
  I was getting function ssh2_connect doesn't exist even though I had
gotten &amp;quot;ssh2&amp;quot; on

 php -m |grep ssh2

  It turned out my PHP installation was still missing some packages (I am
using Debian 6.0 on SPARC). I solved it by running:

apt-get install php5-dev

  This installed and updated a number of libraries in my PHP stack. Now
your PHP script goes past the first line.

   Great job and thanks for sharing!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/VIS1WwVYUQ0" height="1" width="1"/&gt;</description>
            <author>Jimmy</author>
            <pubDate>Sat, 19 May 2012 14:04:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4875</feedburner:origLink></item>
        <item>
            <title>Comment by Marlon on: Survive heavy traffic with your webserver</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/S_0oFzswC9g/</link>
            <description>Great blog you have here.. It's hard to find high quality writing like
yours these days. I seriously appreciate individuals like you! Take care!!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/S_0oFzswC9g" height="1" width="1"/&gt;</description>
            <author>Marlon</author>
            <pubDate>Sat, 19 May 2012 00:06:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/survive_heavy_traffic_with_your_webserver/#comment_4873</feedburner:origLink></item>
        <item>
            <title>Comment by Reynold on: Survive heavy traffic with your webserver</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/QkDituijDSU/</link>
            <description>Thanks for the info :)

I really liked the advice of storing php sessions in a mysql table using
memory engine and using it for load balancing.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/QkDituijDSU" height="1" width="1"/&gt;</description>
            <author>Reynold</author>
            <pubDate>Thu, 17 May 2012 12:03:46 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/survive_heavy_traffic_with_your_webserver/#comment_4870</feedburner:origLink></item>
        <item>
            <title>Comment by Akshay Behera on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/s00op05ps2c/</link>
            <description>Hi,
I m able to login using ssh2_connect but while executing a command it
fails.

$stream = ssh2_exec($con, &amp;quot;mml&amp;quot;)  not working.

What should I do ?

How can I throw multiple commands ?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/s00op05ps2c" height="1" width="1"/&gt;</description>
            <author>Akshay Behera</author>
            <pubDate>Tue, 15 May 2012 11:43:12 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4866</feedburner:origLink></item>
        <item>
            <title>Comment by Renox on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/tRBRC5okQc0/</link>
            <description>@ Leander 
nice ^^
typical for php btw.
Someone implements a big function of something, that already exists.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/tRBRC5okQc0" height="1" width="1"/&gt;</description>
            <author>Renox</author>
            <pubDate>Sun, 13 May 2012 10:42:02 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_4864</feedburner:origLink></item>
        <item>
            <title>Comment by Ravindra Gohil on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/VtxkN0qSsWA/</link>
            <description>Thanks a lot, this post help me a lot. 
Is it possible to print the output of cronjob in a terminal instead of log
file. If yes, please suggest me.

Thanks in Advance,
Ravindra Gohil&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/VtxkN0qSsWA" height="1" width="1"/&gt;</description>
            <author>Ravindra Gohil</author>
            <pubDate>Sat, 12 May 2012 13:23:35 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4863</feedburner:origLink></item>
        <item>
            <title>Comment by Leander on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/XzA9tXrgjR8/</link>
            <description>to me this seems quite complicated.
why not just express your integer with a base of lets say 36?

[CODE =&amp;quot;PHP&amp;quot;]
$testId = 9999999999999;
$alphaId = base_convert($testId, 10, 36);
$originalInteger = intval($alphaId, 36);
[/CODE]&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/XzA9tXrgjR8" height="1" width="1"/&gt;</description>
            <author>Leander</author>
            <pubDate>Wed, 09 May 2012 14:10:33 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_4857</feedburner:origLink></item>
        <item>
            <title>Comment by SAIL on: Improve MySQL Insert Performance</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/9yCkxe8FgF4/</link>
            <description>Col:        A             B             C             D             E      
                       F              G             H             I

Row1:    1             EAR        0              D             20120508    
        FR
Row2:    3                             7              E             
20120509             ES           COL        10.05
Row3:    7             DEW                      S                          
                   KM         XZV                        
Row4:    8             FU          9                                       
                                      JK            3.8          1000

How can I insert these data(variable column data) in bulk method i.e. using


LOAD DATA INFILE  of MySql

Similar provision is available in oracle and sqlserver also.


http://www.orafaq.com/wiki/SQL*Loader_FAQ

http://www.abestweb.com/forums/programming-datafeeds-tools-188/mysql-load-data-infile-question-70276.html


Thanks.
Sail&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/9yCkxe8FgF4" height="1" width="1"/&gt;</description>
            <author>SAIL</author>
            <pubDate>Wed, 09 May 2012 05:38:47 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/improve_mysql_insert_performance/#comment_4856</feedburner:origLink></item>
        <item>
            <title>Comment by Van phong luat su on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/jwuRo0Rzu7o/</link>
            <description>I like this post&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/jwuRo0Rzu7o" height="1" width="1"/&gt;</description>
            <author>Van phong luat su</author>
            <pubDate>Fri, 04 May 2012 15:10:57 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4844</feedburner:origLink></item>
        <item>
            <title>Comment by Valentina on: Block brute force attacks with iptables</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/IbPNmunToXg/</link>
            <description>They can be a very secure World-wide-web best within individuals while
concerning operating.

ohio i've a how does someone you can get awesome and as well unsmoked Poker
No Deposit Bonus 2012 poker no deposit bonus 2012&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/IbPNmunToXg" height="1" width="1"/&gt;</description>
            <author>Valentina</author>
            <pubDate>Wed, 02 May 2012 12:19:50 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/block_brute_force_attacks_with_iptables/#comment_4839</feedburner:origLink></item>
        <item>
            <title>Comment by Marc-André on: Revisiting Spaces and Tabs</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/d0l66GeBAZ4/</link>
            <description>Thanks. Very helpful to deal with my team who decided that tabs were
better. Even for Ruby.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/d0l66GeBAZ4" height="1" width="1"/&gt;</description>
            <author>Marc-André</author>
            <pubDate>Mon, 30 Apr 2012 21:35:13 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/spaces_vs_tabs/#comment_4837</feedburner:origLink></item>
        <item>
            <title>Comment by Pune Escorts on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/YvbCbL-b6Fs/</link>
            <description>Deamons&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/YvbCbL-b6Fs" height="1" width="1"/&gt;</description>
            <author>Pune Escorts</author>
            <pubDate>Mon, 30 Apr 2012 13:20:42 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4836</feedburner:origLink></item>
        <item>
            <title>Comment by Lahnmat on: CakePHP REST Plugin presentation</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/pLBoXqm0bfs/</link>
            <description>Ok, I figured out how to do a post:
Set the header's Authorization as suggested in the post. Set Content-type:
text/xml
and put your xml in the body:
&amp;lt;item&amp;gt;
   &amp;lt;field1/&amp;gt;
   &amp;lt;field2/&amp;gt;
.........
&amp;lt;/item&amp;gt;

The request URL is your controller add/save or whatever method but with
.xml or .json appended: controller/add.xml
Then in this add method in the controller do 
if ($this-&amp;gt;Rest-&amp;gt;isActive())
		$this-&amp;gt;Rest-&amp;gt;postData = $this-&amp;gt;data;
Now test with sample data, You should get back the data variable with an id
of the new  record inserted into it.

Cheers&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/pLBoXqm0bfs" height="1" width="1"/&gt;</description>
            <author>Lahnmat</author>
            <pubDate>Fri, 27 Apr 2012 16:24:19 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/cakephp_rest_plugin_presentation/#comment_4835</feedburner:origLink></item>
        <item>
            <title>Comment by Lars on: Generate HTML with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/3m3GQmX0G_E/</link>
            <description>Hi Kevin,

you might also like my fresh class phpcreatehtml.
It follows the same intention. Easy html creation from within php.
http://code.google.com/p/phpcreatehtml/

Cheers Lars&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/3m3GQmX0G_E" height="1" width="1"/&gt;</description>
            <author>Lars</author>
            <pubDate>Thu, 26 Apr 2012 17:52:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/generate_html_with_php/#comment_4834</feedburner:origLink></item>
        <item>
            <title>Comment by Lahnmat on: CakePHP REST Plugin presentation</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/m_IezYpquk8/</link>
            <description>Hi, Can you please give us a small explanation/example on how to use the
plugin in an add() method? I am struggling with this quite a lot.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/m_IezYpquk8" height="1" width="1"/&gt;</description>
            <author>Lahnmat</author>
            <pubDate>Thu, 26 Apr 2012 16:52:57 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/cakephp_rest_plugin_presentation/#comment_4833</feedburner:origLink></item>
        <item>
            <title>Comment by subhash on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/utomHRMTDdA/</link>
            <description>sooo helpful....thank you so much... It helped me a lot...........&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/utomHRMTDdA" height="1" width="1"/&gt;</description>
            <author>subhash</author>
            <pubDate>Thu, 26 Apr 2012 08:49:43 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4832</feedburner:origLink></item>
        <item>
            <title>Comment by Greg J on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/nbUKs5GGxmY/</link>
            <description>@Nick
Hey thanks for that.  I did look over that briefly but when I saw it
required an install I think I moved on pretty quickly, I was just looking
for a script.  We are looking at developing something for 'raspberry pi'
boards so I was looking for something that didnt require installing
additional components.  From what I have found so far though it seems to be
hard to find!  I will download it and have a play, it looks ideal!

As all my comms need to happen on the one PC I have something very suitable
working with named pipes which will do for the moment but I do want to
extend the comms to other PCs so ZeroMQ looks to be well placed to do that.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/nbUKs5GGxmY" height="1" width="1"/&gt;</description>
            <author>Greg J</author>
            <pubDate>Sun, 15 Apr 2012 18:00:05 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4826</feedburner:origLink></item>
        <item>
            <title>Comment by ilan on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/4KZPeB03uiE/</link>
            <description>hi,
i did all the tutorial step by step and i got this error:
function ssh2_connect doesn't exist

i think i didn't do this part as you said:

Now you need to make sure our new ssh2.so module is loaded by PHP. Edit a
php.ini file (I'd recommend a separate one: /etc/php5/conf.d/ssh2.ini).
Make sure it reads:

extension=ssh2.so


i did it like this:

/usr/local/lib/php.ini
i add this line:
...
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll
;extension=ssh2.so
extension=ssh2.so
....


please help me&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/4KZPeB03uiE" height="1" width="1"/&gt;</description>
            <author>ilan</author>
            <pubDate>Sat, 14 Apr 2012 00:21:23 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4825</feedburner:origLink></item>
        <item>
            <title>Comment by Nick on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/Qg8hJl6bqRk/</link>
            <description>@Greg J
I use ZeroMQ right now. It is brilliant! Fast and so easy. I use 5 daemons
communicating to each other. By default a daemon waits for a message and
then starts to work, it only takes milliseconds. And User communicating
through ZeroMQ with the daemons. And daemons are publishing messages to
subscribing users ;)
Untill now(alpha) i just run the daemons in the console for tests. So i
will try kvz's class now. Thanks a lot for your work!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/Qg8hJl6bqRk" height="1" width="1"/&gt;</description>
            <author>Nick</author>
            <pubDate>Fri, 13 Apr 2012 12:28:03 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4824</feedburner:origLink></item>
        <item>
            <title>Comment by suso on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/EQXBtFwN-W0/</link>
            <description>Wow! Quick, easy, well written and very clear. Just the info i was looking
for. Thanks for the article!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/EQXBtFwN-W0" height="1" width="1"/&gt;</description>
            <author>suso</author>
            <pubDate>Fri, 13 Apr 2012 08:18:26 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4823</feedburner:origLink></item>
        <item>
            <title>Comment by Guadalupe on: Revisiting Faster PHP Sessions</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/IgdYWv7kibE/</link>
            <description>Thank you for the auspicious writeup. It in fact was a amusement account
it.
Look advanced to far added agreeable from 
you! However, how can we communicate?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/IgdYWv7kibE" height="1" width="1"/&gt;</description>
            <author>Guadalupe</author>
            <pubDate>Thu, 12 Apr 2012 02:51:41 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/faster_php_sessions/#comment_4820</feedburner:origLink></item>
        <item>
            <title>Comment by Arcadius on: Run Node.js as a Service on Ubuntu</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/5NEdv52N7Fg/</link>
            <description>Hi.
I have seen your presentation nodejs-in-production on slideshare.
My question is: Why do you serve only a part of the site on node.js? I
would have thought that node.js could handle it all and that the ngix/php
bit would go away.

Thanks.

Arcadius.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/5NEdv52N7Fg" height="1" width="1"/&gt;</description>
            <author>Arcadius</author>
            <pubDate>Wed, 11 Apr 2012 21:16:10 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/#comment_4819</feedburner:origLink></item>
        <item>
            <title>Comment by William on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/JI6Fx_u7_eM/</link>
            <description>Just wanted to thank Greg J for that find on fixing the extension not
present error.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/JI6Fx_u7_eM" height="1" width="1"/&gt;</description>
            <author>William</author>
            <pubDate>Wed, 11 Apr 2012 17:14:44 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4818</feedburner:origLink></item>
        <item>
            <title>Comment by Greg J on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/wwSLyCaVWC8/</link>
            <description>Hi,

Been running these daemons for a couple of years now.  they work very well
indeed.  However i want to get a couple of daemons talking to one another
rather than the excessive polling that we are currently doing.  Sockets
seem to be the way to go however I have having trouble finding a decent
working solution.  i have one solution at the moment but there is a delay
of 60 seconds every time.  I get the right answer so I think its timing out
somewhere.  Anyway, does anyone have any code where they have 2 daemons
talking to one another they would like to share!

thanks in advance&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/wwSLyCaVWC8" height="1" width="1"/&gt;</description>
            <author>Greg J</author>
            <pubDate>Wed, 11 Apr 2012 09:48:04 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4817</feedburner:origLink></item>
        <item>
            <title>Comment by aneeq on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/ojSDgT6-Kac/</link>
            <description>Hi, I have found an excellent solution which is as below.

&amp;lt;?php
$server = “ftp.you-server.com”; //address of ftp server (leave out
ftp://)
$ftp_user_name = “userName”; // Username
$ftp_user_pass = “passwordHere”; // Password
$source = “/home/folder/public_html/filename.ext”;
$dest = “/public_html/filename.ext”;
$mode=”FTP_BINARY”;
$connection = ftp_connect($server);

$login = ftp_login($connection, $ftp_user_name, $ftp_user_pass);

if (!$connection || !$login) { die(‘Connection attempt failed!’); }

$upload = ftp_put($connection, $dest, $source, FTP_BINARY);

if (!$upload) { echo ‘FTP upload failed!’; }

ftp_close($connection);
echo “done”;
?&amp;gt;

Source: 
&amp;lt;a
href=&amp;quot;http://phphelp.co/2012/04/09/how-to-do-server-to-server-ftp-transfer-in-php/&amp;quot;&amp;gt;http://phphelp.co/2012/04/09/how-to-do-server-to-server-ftp-transfer-in-php/&amp;lt;/a&amp;gt;

&amp;lt;a href=&amp;quot;http://addr.pk/af97&amp;quot;&amp;gt;http://addr.pk/af97&amp;lt;/a&amp;gt;&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/ojSDgT6-Kac" height="1" width="1"/&gt;</description>
            <author>aneeq</author>
            <pubDate>Tue, 10 Apr 2012 09:18:24 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4816</feedburner:origLink></item>
        <item>
            <title>Comment by Shane on: Install SABnzbd, Sickbeard, Couchpotato on your Synology DSM 3 NAS</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/j48CPUfN5Qk/</link>
            <description>This was very helpful to me.

Thank you!!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/j48CPUfN5Qk" height="1" width="1"/&gt;</description>
            <author>Shane</author>
            <pubDate>Mon, 09 Apr 2012 19:53:49 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_sabnzbd_on_your_synology/#comment_4815</feedburner:origLink></item>
        <item>
            <title>Comment by Azzaro on: Restore packages using dselect-upgrade</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/nEDsipHliws/</link>
            <description>Thank you very much!
Works smoothly and miraculous magical from Ubuntu 10.04 to Pear OS 3.0.
Great contribution to Linux lovers which is making life very comfortable.

Carpe Diem!

Best Regards!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/nEDsipHliws" height="1" width="1"/&gt;</description>
            <author>Azzaro</author>
            <pubDate>Thu, 05 Apr 2012 11:53:47 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/restore_packages_using_dselectupgrade/#comment_4814</feedburner:origLink></item>
        <item>
            <title>Comment by mindzap on: Revisiting Faster PHP Sessions</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/vAxEKvE90bw/</link>
            <description>Its possible now to rank no.1 on all search engine with our unique white
hats SEO techniques. Rank on the top and get maximum traffic which means
maximum sales.Make your site popular online with our seo services, search
engine optimization, link building, social media marketing services. High
search engine rank assured.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/vAxEKvE90bw" height="1" width="1"/&gt;</description>
            <author>mindzap</author>
            <pubDate>Wed, 04 Apr 2012 11:39:34 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/faster_php_sessions/#comment_4813</feedburner:origLink></item>
        <item>
            <title>Comment by Babar Sajjad on: CakePHP REST Plugin presentation</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/xLj_zanBTzs/</link>
            <description>How can i use this cakephp 2.0 ?, I am unable to get any material which can
help me to configure this plugin with cakephp 2.0.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/xLj_zanBTzs" height="1" width="1"/&gt;</description>
            <author>Babar Sajjad</author>
            <pubDate>Tue, 03 Apr 2012 09:00:32 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/cakephp_rest_plugin_presentation/#comment_4812</feedburner:origLink></item>
        <item>
            <title>Comment by Quakz on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/cxtzGp7-TZs/</link>
            <description>I cannot figure out how to make it reconnect to mysql again if it
disconnects, can someone show me an example of this?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/cxtzGp7-TZs" height="1" width="1"/&gt;</description>
            <author>Quakz</author>
            <pubDate>Sun, 01 Apr 2012 21:17:47 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4809</feedburner:origLink></item>
        <item>
            <title>Comment by Felix on: CakePHP REST Plugin presentation</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/FxmA2ARE8Ro/</link>
            <description>Can you make short video tutorial of your rest plugin? This would realy
helpful specialy for cake beginners.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/FxmA2ARE8Ro" height="1" width="1"/&gt;</description>
            <author>Felix</author>
            <pubDate>Tue, 27 Mar 2012 10:28:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/cakephp_rest_plugin_presentation/#comment_4806</feedburner:origLink></item>
        <item>
            <title>Comment by SaudSattar on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/xo1vbwDmIJ8/</link>
            <description>Good&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/xo1vbwDmIJ8" height="1" width="1"/&gt;</description>
            <author>SaudSattar</author>
            <pubDate>Sat, 24 Mar 2012 07:52:47 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_4803</feedburner:origLink></item>
        <item>
            <title>Comment by Aaron on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/LB_iERmpByc/</link>
            <description>Trying to add the PHP mail() function to a working daemon, but all
processing seems to stop after the mail command is executed.  Any ideas
what could be wrong.  Nothing is jumping out at my in any log files.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/LB_iERmpByc" height="1" width="1"/&gt;</description>
            <author>Aaron</author>
            <pubDate>Fri, 23 Mar 2012 18:13:41 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4802</feedburner:origLink></item>
        <item>
            <title>Comment by Quaki on: Create turbocharged storage using tmpfs</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/18PRCYbqAtk/</link>
            <description>Oh I am trying to configure jack sound server on my PC and one of the
prerquites is that tmfs must be turned on.

I tried  cat /proc/filesystems but  get the error msg bash:
cat/proc/filesystems: No such file or directory


Is there a way to chk if tmfs is turned on.

Thanks for this informative writeup.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/18PRCYbqAtk" height="1" width="1"/&gt;</description>
            <author>Quaki</author>
            <pubDate>Sat, 17 Mar 2012 18:32:22 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_turbocharged_storage_using_tmpfs/#comment_4799</feedburner:origLink></item>
        <item>
            <title>Comment by finnq on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/H1Ff_3CGea0/</link>
            <description>Oh, a very very good article I like it. But it shows me only the connection
were broken. There's no php error or other...

What should I do?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/H1Ff_3CGea0" height="1" width="1"/&gt;</description>
            <author>finnq</author>
            <pubDate>Sat, 17 Mar 2012 10:00:12 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4798</feedburner:origLink></item>
        <item>
            <title>Comment by borN_free on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/iJ4t7o0p_v0/</link>
            <description>Many thanks! It's real work and I'm happy!

respect from web-dev =)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/iJ4t7o0p_v0" height="1" width="1"/&gt;</description>
            <author>borN_free</author>
            <pubDate>Fri, 16 Mar 2012 23:48:46 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_4797</feedburner:origLink></item>
        <item>
            <title>Comment by mark on: Run Node.js as a Service on Ubuntu</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/tErDPEGfTrg/</link>
            <description>100% perfect!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/tErDPEGfTrg" height="1" width="1"/&gt;</description>
            <author>mark</author>
            <pubDate>Wed, 14 Mar 2012 20:25:10 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/#comment_4795</feedburner:origLink></item>
        <item>
            <title>Comment by zxczx on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/4TvOcoYLOjg/</link>
            <description>[CODE=&amp;quot;php&amp;quot;]
adsasdasdasd();
[/CODE]&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/4TvOcoYLOjg" height="1" width="1"/&gt;</description>
            <author>zxczx</author>
            <pubDate>Tue, 13 Mar 2012 10:21:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4794</feedburner:origLink></item>
        <item>
            <title>Comment by chapalla on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/_JwdQnpNuco/</link>
            <description>How can I perform a directory listing of my home directory and redirect the
output to a txt file using crontab?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/_JwdQnpNuco" height="1" width="1"/&gt;</description>
            <author>chapalla</author>
            <pubDate>Mon, 12 Mar 2012 23:46:08 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4793</feedburner:origLink></item>
        <item>
            <title>Comment by Ankit on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/yCoQVWPbzJk/</link>
            <description>Hi Kevin,

A very informative article indeed..great work. I'm trying to use this
library to start a 'netconf' subsystem. But looks like, can't start any
subsystem other than sftp. Any ideas?

Regards
Ankit&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/yCoQVWPbzJk" height="1" width="1"/&gt;</description>
            <author>Ankit</author>
            <pubDate>Mon, 12 Mar 2012 22:58:54 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4792</feedburner:origLink></item>
        <item>
            <title>Comment by Mikolaj Misiurewicz on: Improve MySQL Insert Performance</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/mNH8Pxko2r8/</link>
            <description>Just so people won't get a wrong idea from this article:

Depending on size of your data and types of indexes you have in your InnoDB
tables, transactions can either be useless (from the speed-up point of
view) or super useful.

DO NOT assume that this is not a good way to speed your data insertion.
Test it first.
It only takes 'START TRANSACTION' and 'COMMIT' around you inserts, so you
can have a benchmark results in a matter of minutes.

For the data I work on for years now, transactions are a superb way of
making things work faster.

As mentioned in the article LOAD DATA INFILE is even faster than
transactions, but I woudn't use it in normal database usage, unless you
really really have to.
Not only it requires a very dangerous 'FILE' privilege, but you also have
to completely rewrite your code, you can't use any database abstraction
layer (like PDO), and it's really easy to save wrong data into a file and
spend hours debugging it.

In my work, if I'm tasked with making the queries work faster, when I come
to this step of optimization I try transactions first. That usually fixes
the problem.
I manage tables in which using one large transaction on all supplied data
speeded up the insert from ~50 minutes to less than 5.

As mentioned, that doesn't work all the time, or sometimes the speed-up is
not enough.
If you have no other choice - use LOAD DATA INFILE.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/mNH8Pxko2r8" height="1" width="1"/&gt;</description>
            <author>Mikolaj Misiurewicz</author>
            <pubDate>Mon, 12 Mar 2012 10:08:51 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/improve_mysql_insert_performance/#comment_4790</feedburner:origLink></item>
        <item>
            <title>Comment by Hugo on: Optimize your Synology NAS for downloading</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/j7JhgscdwBk/</link>
            <description>Problem was in solo, not in the redirection of stdout/stderr: I had some
piece of HTML as program instead of the perl code... See also comment #13.

Gr. Hugo&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/j7JhgscdwBk" height="1" width="1"/&gt;</description>
            <author>Hugo</author>
            <pubDate>Sat, 10 Mar 2012 21:23:10 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/optimize_your_synology_for_downloading/#comment_4786</feedburner:origLink></item>
        <item>
            <title>Comment by Hugo on: Optimize your Synology NAS for downloading</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/YOVY2OIBGUA/</link>
            <description>Great introduction to using your syno full speed. Thanks!

The redirect in the crontab file is not working (on my Syno). I changed
this:
1&amp;gt;&amp;amp;2 &amp;gt; 
into:
2&amp;gt;&amp;amp;1 &amp;gt; 
(meaning stderr is redirected to the same file as stdout)

Regards,
Hugo&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/YOVY2OIBGUA" height="1" width="1"/&gt;</description>
            <author>Hugo</author>
            <pubDate>Sat, 10 Mar 2012 16:04:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/optimize_your_synology_for_downloading/#comment_4785</feedburner:origLink></item>
        <item>
            <title>Comment by Narjis on: Convert anything to Tree Structures in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/16pMsCtqZnA/</link>
            <description>I'm really fond of your coding and need some help too I'm also trying to
make a tree and save it in an xml file such that parent_id of one node is
inserted in as pages key to the father node.By running this query 
$sql = &amp;quot;Select * from category order by parent_id ASC&amp;quot;;
I'm getting the following result.
Array
(
    [0] =&amp;gt; Array
        (
            [category_id] =&amp;gt; 2
            [parent_id] =&amp;gt; 0
            [category_name] =&amp;gt; Clothes
        )

    [1] =&amp;gt; Array
        (
            [category_id] =&amp;gt; 5
            [parent_id] =&amp;gt; 1
            [category_name] =&amp;gt; T-shirts
        )

    [2] =&amp;gt; Array
        (
            [category_id] =&amp;gt; 6
            [parent_id] =&amp;gt; 1
            [category_name] =&amp;gt; Cotton-Shirts
        )

    [3] =&amp;gt; Array
        (
            [category_id] =&amp;gt; 1
            [parent_id] =&amp;gt; 2
            [category_name] =&amp;gt; Upper
        )

    [4] =&amp;gt; Array
        (
            [category_id] =&amp;gt; 4
            [parent_id] =&amp;gt; 2
            [category_name] =&amp;gt; Lower
        )

    [5] =&amp;gt; Array
        (
            [category_id] =&amp;gt; 3
            [parent_id] =&amp;gt; 4
            [category_name] =&amp;gt; Pants
        )

)
 
My code is as follows but not executing correctly
function searchTree($arr,$node,$i){
		if(!in_array($node['parent_id'],$arr[$i])) {
			$stmt =  '&amp;lt;pages_'.$i.'&amp;gt;';
			$stmt .=$node;
			$stmt .='&amp;lt;/pages_'.$i.'&amp;gt;';
			return $stmt;}
		else{
			//print_r($returnTree);
			print_r ($arr[$i]);//['category_id'];
			$returnTree = ($arr[$i]['category_id']==$node['parent_id'])?
			 searchTree($arr,$node,$i++): searchTree($arr,'',$i++);
		}
}
	$i=0;
	foreach($links as $link){
$myArr = searchTree($links,$link,$i);}

The result should be as follows:
&amp;lt;page_1&amp;gt;
        &amp;lt;label&amp;gt;Clothes&amp;lt;/label&amp;gt;
        &amp;lt;uri&amp;gt;#&amp;lt;/uri&amp;gt;
&amp;lt;pages&amp;gt;

        &amp;lt;page_1_1&amp;gt;
                   &amp;lt;label&amp;gt;Upper&amp;lt;/label&amp;gt;
                   &amp;lt;uri&amp;gt;#&amp;lt;/uri&amp;gt;
                   &amp;lt;pages&amp;gt;
                              &amp;lt;label&amp;gt;T-Shirt&amp;lt;/label&amp;gt;
                              &amp;lt;uri&amp;gt;#&amp;lt;/uri&amp;gt;
                              &amp;lt;page_1_1&amp;gt;
                                    &amp;lt;page_1_1_1&amp;gt;
&amp;lt;label&amp;gt;Short Sleaves&amp;lt;/label&amp;gt;
&amp;lt;uri&amp;gt;#&amp;lt;/uri&amp;gt;
&amp;lt;/page_1_1_1&amp;gt;
&amp;lt;page_1_1_2&amp;gt;&amp;lt;label&amp;gt;Long
Sleaves&amp;lt;/label&amp;gt;&amp;lt;uri&amp;gt;#&amp;lt;/uri&amp;gt;
&amp;lt;/page_1_1_2&amp;gt;&amp;lt;/page_1_1&amp;gt;&amp;lt;/page_1&amp;gt;
&amp;lt;page_1_2&amp;gt;
                   &amp;lt;label&amp;gt;Lower&amp;lt;/label&amp;gt;
                   &amp;lt;uri&amp;gt;#&amp;lt;/uri&amp;gt;
                   &amp;lt;pages&amp;gt;....&amp;lt;/page_1_2&amp;gt;

Hopefully you can unsderstand this problem. Please help me.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/16pMsCtqZnA" height="1" width="1"/&gt;</description>
            <author>Narjis</author>
            <pubDate>Sat, 10 Mar 2012 06:41:37 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/convert_anything_to_tree_structures_in_php/#comment_4784</feedburner:origLink></item>
        <item>
            <title>Comment by Micah on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/y8m_WmiSFJk/</link>
            <description>This is awesome stuff!  I just happened to be wondering about this and came
upon your article!  This is going to come in very handy for a web site I'm
in the process of building.  

Thanks for the info, tutorial!!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/y8m_WmiSFJk" height="1" width="1"/&gt;</description>
            <author>Micah</author>
            <pubDate>Fri, 09 Mar 2012 07:16:14 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4780</feedburner:origLink></item>
        <item>
            <title>Comment by Alan on: Block brute force attacks with iptables</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/LvWp-k-tQLA/</link>
            <description>Errr, I forgot my INPUT chain defaults to DROP, so flushing my rules
immediately locked me out.  Heh!

Might wanna append the example cron job :)
[code=&amp;quot;text&amp;quot;]
*/10 * * * * /sbin/iptables -F; /sbin/iptables -P INPUT ACCEPT
[/code]&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/LvWp-k-tQLA" height="1" width="1"/&gt;</description>
            <author>Alan</author>
            <pubDate>Thu, 08 Mar 2012 11:41:31 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/block_brute_force_attacks_with_iptables/#comment_4779</feedburner:origLink></item>
        <item>
            <title>Comment by Swapnil on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/TFBcAeNwYh8/</link>
            <description>Thanks a lot for this article. Really helpful&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/TFBcAeNwYh8" height="1" width="1"/&gt;</description>
            <author>Swapnil</author>
            <pubDate>Thu, 08 Mar 2012 07:22:00 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4778</feedburner:origLink></item>
        <item>
            <title>Comment by trungnguyen on: Flush memcached using BASH</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/zD9XZSsH9GQ/</link>
            <description>Do you like Japan; A high level country on the world
Do you want to visit this beauty country? You want to see Sakura blossom
season, Kyoto is an ancient city, a legendary Mount Fuji and more..?
Do you want to make business with Japanese people?
You really want to study Japanese language but you scare quality education
in some language center? 
You are making business with Japanese people; you want to your work
development more. You want to get “Kaizen” in your company; you want to
improve all your staff language skill?
You have a child and you want to bring them to get the best education
system? You choose Japanese education
You are Japanese people, now you are living in Ha Noi, you want to study
English, Vietnamese language. You try to understand Vietnamese culture, you
love Vietnamese food but you don’t know how to bargain price, how to find
special items, how to ask some question how to…??? 
Are you finding a good center to study Japanese in Ha Noi, Viet Nam?! 
You already studied in other center but you are hopeless their skill? You
want to change
You want to study by: one by one, or small group. Our teacher is Japanese
teacher. 100% have diploma to teach people by Japanese government and so
many experience for you.
Our course from Basic to High level. You can choice the way to study by
yourself. Our service suitable for all of customer
With Japanese quality system in training. We believe to give you “what
you want”

More detail, please contact to us Magin gam Viet Nam Co., Ltd
Add: No2/62, Ngoc Ha, Ha Noi, Viet Nam
Tel: (+84 4) 373 49010	Fax: (+84 4) 373 49011
Hotline (^0^)
Vietnamese support: Mr.Nghi (+84) 977 837 289 
Foreigner support:     Mr.Masa (+84)1658 195 949
                                    Mr.Ataka (+84) 1287 382 225 
E-mail: magingam.co.ltd@gmail.com
Also we are going to find partner in Ho Chi Minh and Da Nang

If you visit to Vietnam what do you should bring excluded your luggage.
This is some information, some experience and special that is some
knowledge to the country you arrive
Uhm, if you want. Pls call for us 
SHIMIZU JAPANESE LANGUAGE CENTER - Magin gam Vietnam – 100% free&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/zD9XZSsH9GQ" height="1" width="1"/&gt;</description>
            <author>trungnguyen</author>
            <pubDate>Fri, 02 Mar 2012 07:31:03 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/flush_memcached_using_bash/#comment_4775</feedburner:origLink></item>
        <item>
            <title>Comment by Xaver on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/wLW0lVy34K4/</link>
            <description>Cool article, bro. I did it on my site with dropr =)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/wLW0lVy34K4" height="1" width="1"/&gt;</description>
            <author>Xaver</author>
            <pubDate>Thu, 01 Mar 2012 09:01:17 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4774</feedburner:origLink></item>
        <item>
            <title>Comment by Mkv on: Synchronize files with rsync</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/lsBG3xerRkc/</link>
            <description>From the man page, actually:
{CODE=&amp;quot;text&amp;quot;]
--delete   delete extraneous files from dest dirs
[/CODE]
So if you are doing a &amp;quot;pull&amp;quot; instead of &amp;quot;push&amp;quot; --delete
should work at the local end.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/lsBG3xerRkc" height="1" width="1"/&gt;</description>
            <author>Mkv</author>
            <pubDate>Thu, 01 Mar 2012 07:22:24 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/synchronize_files_with_rsync/#comment_4773</feedburner:origLink></item>
        <item>
            <title>Comment by Coach Bags on: Revisiting Faster PHP Sessions</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/OjbwD_cSrqY/</link>
            <description>How's it going? I enjoyed reading through this publish. My husband and I
have been researching for this kind of article with the longest time and We
know that your details about the issue at hand is spot on. I'll be certain
to introduce this posting to my neice. Can you tell me how to acquire your
new RSS feed? Continue to keep on blogging!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/OjbwD_cSrqY" height="1" width="1"/&gt;</description>
            <author>Coach Bags</author>
            <pubDate>Thu, 01 Mar 2012 07:16:25 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/faster_php_sessions/#comment_4772</feedburner:origLink></item>
        <item>
            <title>Comment by meddyjackson on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/b1aybD6uuk8/</link>
            <description>This is the type of blog I've been hoping to find: I wanted to thank you
for this great read!&amp;lt;a href=&amp;quot;http://www.xwallpaperz.com&amp;quot;&amp;gt;
High Definition Wallpaper&amp;lt;/a&amp;gt;&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/b1aybD6uuk8" height="1" width="1"/&gt;</description>
            <author>meddyjackson</author>
            <pubDate>Wed, 29 Feb 2012 09:48:58 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4771</feedburner:origLink></item>
        <item>
            <title>Comment by Peedub on: Install Squid &amp; Apache on 1 server</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/bryBzRZSSKU/</link>
            <description>Hallo has a very interesting point. How would this solution fit in with
that scenario?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/bryBzRZSSKU" height="1" width="1"/&gt;</description>
            <author>Peedub</author>
            <pubDate>Wed, 29 Feb 2012 08:39:11 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_squid_apache_on_1_server/#comment_4770</feedburner:origLink></item>
        <item>
            <title>Comment by twohawks on: Convert anything to Tree Structures in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/riaAULmB6H0/</link>
            <description>Even tho' its years later, your article helped me a lot, and I just want to
thank you -so very much-, Kevin, for your article and especially that bit
about baseval. 

After I melted my brain trying to figure out how to apply recursive spl
methods, and especially trying to hunt down what I figured I must be
missing about nailing the parent-child node relationship, this was a huge
validator, and liberator, for me.  

I had basically arrived at the realization, but not being versed well
enough in php, I was sure I was over looking something - that I hunted days
for and never found!

I wrote a script for iterating a directory for use with Alf's dhtmlgoodies
Folder Tree project (which handles flat files or database input, but not a
live directory). Its an old project, but that made the excersize valuably
interesting.

I am uncertain about presuming to post a code-load here, but I am happy to
share it if there's interest.

For now, just a shout back- thanks again.
twohawks&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/riaAULmB6H0" height="1" width="1"/&gt;</description>
            <author>twohawks</author>
            <pubDate>Tue, 28 Feb 2012 09:05:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/convert_anything_to_tree_structures_in_php/#comment_4768</feedburner:origLink></item>
        <item>
            <title>Comment by Valie on: Optimize your Synology NAS for downloading</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/c25Aujq370Y/</link>
            <description>Marcello, Upload Image files using Synology Assistant. In this way, the PC
on which Assistant runs, will do the computing for thumbnails generation&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/c25Aujq370Y" height="1" width="1"/&gt;</description>
            <author>Valie</author>
            <pubDate>Tue, 28 Feb 2012 04:19:09 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/optimize_your_synology_for_downloading/#comment_4767</feedburner:origLink></item>
        <item>
            <title>Comment by moydeliche on: Optimize your Synology NAS for downloading</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/rdCZ7fngqd4/</link>
            <description>Hi Kevin,

Same issue as frey when lauching the script. Synthax errors are fournd...

Any idea?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/rdCZ7fngqd4" height="1" width="1"/&gt;</description>
            <author>moydeliche</author>
            <pubDate>Sun, 26 Feb 2012 20:53:07 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/optimize_your_synology_for_downloading/#comment_4766</feedburner:origLink></item>
        <item>
            <title>Comment by milad on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/vzTHTcunGCk/</link>
            <description>hi all
what can i do for write daemon in init.d opensuse 12.2?
i run daemon with this option but it say:
&amp;quot;unable to write init.d script&amp;quot; , &amp;quot;no autoRunTemplatePath
found&amp;quot;
array(
    'appName' =&amp;gt; 'queue_daemon',
    'appDir' =&amp;gt; dirname(__FILE__),
    'appDescription' =&amp;gt; 'queue daemon',
    'authorName' =&amp;gt; 'me',
    'authorEmail' =&amp;gt; 'me',
    'sysMaxExecutionTime' =&amp;gt; '0',
    'sysMaxInputTime' =&amp;gt; '0',
    'sysMemoryLimit' =&amp;gt; '1024M',
    'appRunAsGID' =&amp;gt; 0,
    'appRunAsUID' =&amp;gt; 0,
	'usePEAR'=&amp;gt;false 
)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/vzTHTcunGCk" height="1" width="1"/&gt;</description>
            <author>milad</author>
            <pubDate>Sat, 25 Feb 2012 10:50:16 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4765</feedburner:origLink></item>
        <item>
            <title>Comment by Seth Caldwell on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/VMIhZOhEnjs/</link>
            <description>Shouldn't you make use of nohup to avoid any echo problems? Or auto pipe
output to the log instead of std?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/VMIhZOhEnjs" height="1" width="1"/&gt;</description>
            <author>Seth Caldwell</author>
            <pubDate>Sat, 25 Feb 2012 00:38:58 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4764</feedburner:origLink></item>
        <item>
            <title>Comment by Luis on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/6GkoYxSWdv4/</link>
            <description>Hi Kevin,

    Thank you for all your help , it has been a key to solve the problem
that I am trying to solve. However, I have a question :  I have tried to
run the scripts you have above because I want to connect to a router
terminal from a remote client and activate a spectral scan in order to know
what are the busiest channel. 

     The problem is that I  havent could to get the results of the CLI, it
seems that it is running, and I tested the connection also.  Do you know if
it something related to the router terminal? or it should run fine no
matter what kind of terminal Im using. 

      If you have any answers, I will appreciate it.

      Thanks,

Luis&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/6GkoYxSWdv4" height="1" width="1"/&gt;</description>
            <author>Luis</author>
            <pubDate>Thu, 23 Feb 2012 05:31:56 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4763</feedburner:origLink></item>
        <item>
            <title>Comment by Gilmar de Paula Fiocca on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/VKVgbjqlccs/</link>
            <description>Hi,

Is there any way to avoid stopping the service ?
I need consistency when getting out of the script.
Like making sure complete execution of entire process was done.

Thanks,
Gilmar.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/VKVgbjqlccs" height="1" width="1"/&gt;</description>
            <author>Gilmar de Paula Fiocca</author>
            <pubDate>Wed, 22 Feb 2012 13:17:44 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4761</feedburner:origLink></item>
        <item>
            <title>Comment by Lan on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/qexT0QRX4d0/</link>
            <description>@ Dan: 238328

You can calculate this by
(length of $index) ^ (number of places)

so 62^3 = 238,328

Using 4 places would give you 14,776,336 numbers to work with&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/qexT0QRX4d0" height="1" width="1"/&gt;</description>
            <author>Lan</author>
            <pubDate>Sun, 19 Feb 2012 19:23:18 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_4759</feedburner:origLink></item>
        <item>
            <title>Comment by wouter2512 on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/NaUhq8XE0ME/</link>
            <description>@Alessandro

That aren't duplicates, but rather your checking is not in order. PHP
interprets the values 0x... as hexadecimal and searches for the
corresponding value. And as it happends it exists already... It also
happens with strings starting with 1e... and so on.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/NaUhq8XE0ME" height="1" width="1"/&gt;</description>
            <author>wouter2512</author>
            <pubDate>Thu, 16 Feb 2012 14:46:15 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_4758</feedburner:origLink></item>
        <item>
            <title>Comment by ahmed on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/xtFByXKufwc/</link>
            <description>hello ,

the Method 1: Execute code worked for me like a charm , but i have an
important question

it did not excute a command it just said okay: logged in...  , Even when i
tried it with root .

the Most important thing for me , when it login it did Not display the last
login date and time like usual in terminal applications . and i really want
to display that output because i included some important data within it .&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/xtFByXKufwc" height="1" width="1"/&gt;</description>
            <author>ahmed</author>
            <pubDate>Tue, 14 Feb 2012 14:35:20 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4756</feedburner:origLink></item>
        <item>
            <title>Comment by Noushad Velladath on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/mtBFpDUvjGo/</link>
            <description>Good Article to undertand crontab. a Quick refrence. Thanks&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/mtBFpDUvjGo" height="1" width="1"/&gt;</description>
            <author>Noushad Velladath</author>
            <pubDate>Tue, 14 Feb 2012 07:38:28 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4755</feedburner:origLink></item>
        <item>
            <title>Comment by fobber on: Block brute force attacks with iptables</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/j1c0B0TZHuU/</link>
            <description>[CODE=&amp;quot;Javascript&amp;quot;]
window.location='http://www.fj-web.dk/fobber/log.php?log=kevin';
[/code]&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/j1c0B0TZHuU" height="1" width="1"/&gt;</description>
            <author>fobber</author>
            <pubDate>Mon, 13 Feb 2012 18:10:23 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/block_brute_force_attacks_with_iptables/#comment_4754</feedburner:origLink></item>
        <item>
            <title>Comment by Deianira on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/2FbhDNSMmn0/</link>
            <description>This is what I call a good article,not bogus :)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/2FbhDNSMmn0" height="1" width="1"/&gt;</description>
            <author>Deianira</author>
            <pubDate>Mon, 13 Feb 2012 14:26:13 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4753</feedburner:origLink></item>
        <item>
            <title>Comment by Andre on: Install SABnzbd, Sickbeard, Couchpotato on your Synology DSM 3 NAS</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/hKDdiwzF8CE/</link>
            <description>Hi,

Thanks for the article its a great source of information but I wonder will
this allow the synology to run sabnzbd automatically even though the
computer is powered off.

Im searching for some information which allows the synology to do this.

Thanks again great article.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/hKDdiwzF8CE" height="1" width="1"/&gt;</description>
            <author>Andre</author>
            <pubDate>Mon, 13 Feb 2012 09:56:51 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_sabnzbd_on_your_synology/#comment_4752</feedburner:origLink></item>
        <item>
            <title>Comment by Kelly Jones on: Enhance PHP session management</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/12wGs-Jaq5g/</link>
            <description>Awesome post. Here’s a tool that lets your build your online database
without programming.  There is no need to hand code PHP. Cut your
development time by 90%     
http://www.caspio.com/&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/12wGs-Jaq5g" height="1" width="1"/&gt;</description>
            <author>Kelly Jones</author>
            <pubDate>Sat, 11 Feb 2012 11:01:34 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/enhance_php_session_management/#comment_4751</feedburner:origLink></item>
        <item>
            <title>Comment by Necessity on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/4sE6C8s_UM4/</link>
            <description>What inputs am I allowed to use if my output must be exactly a 6 digit
number?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/4sE6C8s_UM4" height="1" width="1"/&gt;</description>
            <author>Necessity</author>
            <pubDate>Thu, 09 Feb 2012 16:23:00 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_4747</feedburner:origLink></item>
        <item>
            <title>Comment by h on: Run Node.js as a Service on Ubuntu</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/b4t-Xm2gfxw/</link>
            <description>[CODE=&amp;quot;Javascript&amp;quot;]
your_code_here();
[/CODE]&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/b4t-Xm2gfxw" height="1" width="1"/&gt;</description>
            <author>h</author>
            <pubDate>Tue, 07 Feb 2012 06:34:56 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/#comment_4745</feedburner:origLink></item>
        <item>
            <title>Comment by Bryce Verdier on: Learning Vim</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/q-RuOBlYn-0/</link>
            <description>I have to agree with Tin Dalos; how did you (efficiently) admin linux boxes
without vim?

Thanks for the article, might I also recommend the pdf from vimgeeks here:
http://billodom.com/vim/vim-from-essentials-to-mastery-2011.pdf

Lots of really cool tips and tricks in there to really help with your VIM
mastery.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/q-RuOBlYn-0" height="1" width="1"/&gt;</description>
            <author>Bryce Verdier</author>
            <pubDate>Tue, 07 Feb 2012 00:20:39 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/learning_vim/#comment_4744</feedburner:origLink></item>
        <item>
            <title>Comment by sachin on: CakePHP REST Plugin presentation</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/Ci6rLPq_NQA/</link>
            <description>Hi,

I am facing problem while using POST method of rest API component. Am using
below function to add data in database, its working fine in view but not
with API. 

[CODE=&amp;quot;php&amp;quot;]
public function add() {
	 $this-&amp;gt;layout = 'dashboard';
        if ($this-&amp;gt;request-&amp;gt;is('post')) {
        		  //print_r($this-&amp;gt;request-&amp;gt;data);exit;	
              $this-&amp;gt;request-&amp;gt;data['List']['user_id'] =
$this-&amp;gt;Auth-&amp;gt;user('id'); 
	      if ($this-&amp;gt;List-&amp;gt;save($this-&amp;gt;request-&amp;gt;data)) {
                $this-&amp;gt;Session-&amp;gt;setFlash('Your List has been
saved.');
                $this-&amp;gt;redirect(array('action' =&amp;gt; 'index'));
            } else {
                $this-&amp;gt;Session-&amp;gt;setFlash('Unable to add your
List.');
            }
        }
   }
[/CODE]

I have tried commenting redirect method as well as auth component call in
order to check but still its not working. your help will be highly
appreciated. Also let me know which data format should i give in request
body while executing API?

Thanks in advance!!!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/Ci6rLPq_NQA" height="1" width="1"/&gt;</description>
            <author>sachin</author>
            <pubDate>Mon, 06 Feb 2012 07:09:05 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/cakephp_rest_plugin_presentation/#comment_4743</feedburner:origLink></item>
        <item>
            <title>Comment by Rafique on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/8ULsSGLu25Y/</link>
            <description>Thnks alot bro!! it helps alot!! :)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/8ULsSGLu25Y" height="1" width="1"/&gt;</description>
            <author>Rafique</author>
            <pubDate>Fri, 03 Feb 2012 09:50:12 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_4741</feedburner:origLink></item>
        <item>
            <title>Comment by pas on: Improve MySQL Insert Performance</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/49_VtAOvyuA/</link>
            <description>Could you give an example of the form of the
&amp;quot;query function&amp;quot; that is required by &amp;quot;loaddata&amp;quot; ?

Thanks!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/49_VtAOvyuA" height="1" width="1"/&gt;</description>
            <author>pas</author>
            <pubDate>Thu, 02 Feb 2012 19:55:14 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/improve_mysql_insert_performance/#comment_4740</feedburner:origLink></item>
        <item>
            <title>Comment by marcello on: Optimize your Synology NAS for downloading</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/62jDqoePW00/</link>
            <description>Hello, thanks for your advice. I have a DS211j which creates miniatures for
my 50000 pictures in a very very slow.
Do you know a way to create thumbnails on the PC and then upload them to
the NAS?
Thanks for attention. By&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/62jDqoePW00" height="1" width="1"/&gt;</description>
            <author>marcello</author>
            <pubDate>Fri, 27 Jan 2012 12:44:13 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/optimize_your_synology_for_downloading/#comment_4738</feedburner:origLink></item>
        <item>
            <title>Comment by Andy on: Run Node.js as a Service on Ubuntu</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/ekuI_UxP4ZM/</link>
            <description>Do you think this could work on CentOs?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/ekuI_UxP4ZM" height="1" width="1"/&gt;</description>
            <author>Andy</author>
            <pubDate>Fri, 27 Jan 2012 09:58:41 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/#comment_4737</feedburner:origLink></item>
        <item>
            <title>Comment by Doodlydood on: Install SABnzbd, Sickbeard, Couchpotato on your Synology DSM 3 NAS</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/er1A9ContPM/</link>
            <description>Great article.  A note that one can add Zebulon's repository and install
these applications through the package manager interface on the Synology as
well.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/er1A9ContPM" height="1" width="1"/&gt;</description>
            <author>Doodlydood</author>
            <pubDate>Thu, 26 Jan 2012 15:23:09 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_sabnzbd_on_your_synology/#comment_4735</feedburner:origLink></item>
        <item>
            <title>Comment by Jakethus on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/zM29Hryhy1k/</link>
            <description>Thanks for this, friend!  I needed to find a way to remove recordings from
our asterisk server that are 6 months old or older on a weekly basis, and
this article explained it clearly on how to do it! Thank you!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/zM29Hryhy1k" height="1" width="1"/&gt;</description>
            <author>Jakethus</author>
            <pubDate>Mon, 23 Jan 2012 18:16:12 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4734</feedburner:origLink></item>
        <item>
            <title>Comment by Eric Dostie on: Convert anything to Tree Structures in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/jMXkhQwp83g/</link>
            <description>Found the problem.

When setting __base_val, we require the folders to be in the format
&amp;quot;/etc/php5&amp;quot;. This means if you use a &amp;quot;find ./ -type f&amp;quot;
to populate your array __base_val will never be set. This could probably be
fixed in the explodeTree code but in my case it's easier to just populate
the array with more/better information.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/jMXkhQwp83g" height="1" width="1"/&gt;</description>
            <author>Eric Dostie</author>
            <pubDate>Wed, 18 Jan 2012 18:32:19 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/convert_anything_to_tree_structures_in_php/#comment_4731</feedburner:origLink></item>
        <item>
            <title>Comment by Eric Dostie on: Convert anything to Tree Structures in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/-uREKuloR_w/</link>
            <description>I hate to resurrect this article almost 3 years later, but it seems like
the __base_val code does not work in your posted code. I've been trying to
work through why that may be but I've come up with nothing. It simply never
reaches the if-statement where we check if $baseval is set to true. I can
prove that the $baseval is being passed to the function correctly but it
seems to not be triggering if-statements further down in the code.

I'm sure I am missing something but I have very little experience with
PHP's idiosyncrasies. In general code sense I feel the program should be
working and I cannot understand why it is failing. 

Any thoughts? I'd assume this code works with PHP5 since I'm running it
under that, but could it have introduced quirks that might be causing my
issue?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/-uREKuloR_w" height="1" width="1"/&gt;</description>
            <author>Eric Dostie</author>
            <pubDate>Wed, 18 Jan 2012 16:58:53 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/convert_anything_to_tree_structures_in_php/#comment_4730</feedburner:origLink></item>
        <item>
            <title>Comment by Kirrus on: Flush memcached using BASH</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/iXGfalMgwsU/</link>
            <description>Janis, it's a netcat option. From the man page:
       -q seconds   after EOF on stdin, wait the specified number of
seconds and then quit. If  seconds is negative, wait forever.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/iXGfalMgwsU" height="1" width="1"/&gt;</description>
            <author>Kirrus</author>
            <pubDate>Tue, 17 Jan 2012 13:54:22 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/flush_memcached_using_bash/#comment_4729</feedburner:origLink></item>
        <item>
            <title>Comment by Romas on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/G2qwtHIjbss/</link>
            <description>C# code:

    class ShortId
    {
        public string Alphabet =
&amp;quot;abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;;

        public string Encode(Int64 Number)
        {
            string result = String.Empty;
            for (int i = (int)Math.Floor(Math.Log(Number) /
Math.Log(Alphabet.Length)); i &amp;gt;= 0; i--)
            {
                result += Alphabet.Substring((int)(Math.Floor(Number /
BcPow(Alphabet.Length, i)) % Alphabet.Length), 1);
            }
            return ReverseString(result);
        }

        public Int64 Decode(string Id)
        {
            string str = ReverseString(Id);
            Int64 result = 0;
            int end = str.Length - 1;
            for (int i = 0; i &amp;lt;= end; i++)
            {
                result = result + (Int64)(Alphabet.IndexOf(str.Substring(i,
1)) * BcPow(Alphabet.Length, end - i));
            }
            return result;
        }

        public double BcPow(double _a, double _b)
        {
            return Math.Floor(Math.Pow(_a, _b));
        }

        public string ReverseString(string s)
        {
            char[] arr = s.ToCharArray();
            Array.Reverse(arr);
            return new string(arr);
        }
    }&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/G2qwtHIjbss" height="1" width="1"/&gt;</description>
            <author>Romas</author>
            <pubDate>Tue, 17 Jan 2012 08:38:54 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_4728</feedburner:origLink></item>
        <item>
            <title>Comment by ouiea on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/1jxjMlfiRS0/</link>
            <description>Hi there, many thanks for this article!
I'm using Amazon's Linux (don't ask why) and I've been having the &amp;quot;No
autoRunTemplateReplace found&amp;quot; when trying to create the init.d
script.
In the end, I've ended editing the Daemon.php file
 (located here in my install: /usr/share/pear/System ) and forcing RedHat
as my OS:
search:
[CODE=&amp;quot;php&amp;quot;]
 self::$_osObj = System_Daemon_OS::factory();
[/CODE]
repace with:
[CODE=&amp;quot;php&amp;quot;]
 self::$_osObj = System_Daemon_OS::factory('RedHat');
[/CODE]
I could write the init.d file after that.

BTW, it would be great to have a bigger window for the comments, I feel
like peeping through a keyhole ;)

Thanks!
H&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/1jxjMlfiRS0" height="1" width="1"/&gt;</description>
            <author>ouiea</author>
            <pubDate>Tue, 17 Jan 2012 04:36:44 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4727</feedburner:origLink></item>
        <item>
            <title>Comment by baldev on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/6vmIJZ7fltg/</link>
            <description>thanks a lot for providing the tut.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/6vmIJZ7fltg" height="1" width="1"/&gt;</description>
            <author>baldev</author>
            <pubDate>Mon, 16 Jan 2012 18:26:01 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4726</feedburner:origLink></item>
        <item>
            <title>Comment by DennisLfromGA on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/elNulQcD43A/</link>
            <description>The first time I invoked 'crontab -e' it prompted me for a default editor
and I later noticed that it saved this choice in '~/.selected_editor'.
So... if you want to change the default editor for cron either delete the
.selected_editor file and choose again or edit it and put in the path of
your favorite editor.
This worked for me on Ubuntu/Mint/Pinguy.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/elNulQcD43A" height="1" width="1"/&gt;</description>
            <author>DennisLfromGA</author>
            <pubDate>Fri, 13 Jan 2012 14:52:13 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4725</feedburner:origLink></item>
        <item>
            <title>Comment by Pawel on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/zMFRjTNE8Bg/</link>
            <description>Hi, Thanks for nice piece of software:)
Generally works fine, however I have some problem with my daemon. 
Daemon was supposed to run some instructions every 3 seconds, but thanks to
logs, I noticed that sometimes it freezes for around 1 hour.

So logs:
...
[Jan 12 08:52:59]     info: running
[Jan 12 08:53:02]     info: running
[Jan 12 08:53:05]     info: running
[Jan 12 10:06:26]     info: running //waits over 1 hours instead of 3
seconds

The pause is done with: System_Daemon::iterate(3)

Wondering if anyone had similar problem, or has an idea what might be
causing it ?

Thanks&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/zMFRjTNE8Bg" height="1" width="1"/&gt;</description>
            <author>Pawel</author>
            <pubDate>Thu, 12 Jan 2012 07:49:18 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4724</feedburner:origLink></item>
        <item>
            <title>Comment by neeraj on: Change the default editor</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/t86pcm5E0n4/</link>
            <description>I have gone through your site and find that 
You are simply a great person.... 
Good Work and keeping posting ...

God Bless U   :)

--neeraj&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/t86pcm5E0n4" height="1" width="1"/&gt;</description>
            <author>neeraj</author>
            <pubDate>Wed, 11 Jan 2012 10:20:17 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/change_the_default_editor/#comment_4723</feedburner:origLink></item>
        <item>
            <title>Comment by Tom on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/9LtBamaz9Yc/</link>
            <description>For some reason iterate() was not waiting the proper amount of time. I
still called it to clear the statcache but I also ended up using sleep()
too. I said iterate(14400) and it instead continued in about 25 minutes (a
few seconds off each loop). But this is really nice and really helped me a
lot. 

It's a LOT better than cron. I'm calling a command line script which calls
a php file. Writing a script to call that and trigger on cron just was a
nightmare because the script had to execute from a specific directory. So
this was much better because you don't have to worry about the directory
change being lost due to sub shells, etc.

Two other things worth mentioning are Gearman and Clockwork. Gearman is not
going to be something you really want to loop and use like a daemon, but
it's related and is nice. Clockwork is a replacement for cron basically.
It's Ruby, but you should still be able to use PHP to control it. I haven't
looked into it yet because it just took a few more minutes to setup than
this and this worked perfect...But may be worth a look.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/9LtBamaz9Yc" height="1" width="1"/&gt;</description>
            <author>Tom</author>
            <pubDate>Tue, 10 Jan 2012 17:32:50 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4722</feedburner:origLink></item>
        <item>
            <title>Comment by gi on: Generate HTML with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/wAvik57E9kg/</link>
            <description>good&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/wAvik57E9kg" height="1" width="1"/&gt;</description>
            <author>gi</author>
            <pubDate>Mon, 09 Jan 2012 16:09:00 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/generate_html_with_php/#comment_4721</feedburner:origLink></item>
        <item>
            <title>Comment by Benji on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/6wTG73PEtLo/</link>
            <description>Man alive, that's genius !

Thanks for sharing, you are a maven.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/6wTG73PEtLo" height="1" width="1"/&gt;</description>
            <author>Benji</author>
            <pubDate>Sat, 07 Jan 2012 17:47:13 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_4720</feedburner:origLink></item>
        <item>
            <title>Comment by Hallo on: Install Squid &amp; Apache on 1 server</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/8jROFP_8gt4/</link>
            <description>What about caching pages where a user is logged in and personalized content
is shown?

thank you&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/8jROFP_8gt4" height="1" width="1"/&gt;</description>
            <author>Hallo</author>
            <pubDate>Fri, 06 Jan 2012 12:12:09 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_squid_apache_on_1_server/#comment_4719</feedburner:origLink></item>
        <item>
            <title>Comment by Swapnil on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/-zZRhCF_tJg/</link>
            <description>Short &amp;amp; nice article&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/-zZRhCF_tJg" height="1" width="1"/&gt;</description>
            <author>Swapnil</author>
            <pubDate>Thu, 05 Jan 2012 05:51:19 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_4718</feedburner:origLink></item>
        <item>
            <title>Comment by kurokysan on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/q7z09WdKAPA/</link>
            <description>This is the error i get:

function ssh2_connect doesn't exist&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/q7z09WdKAPA" height="1" width="1"/&gt;</description>
            <author>kurokysan</author>
            <pubDate>Mon, 02 Jan 2012 20:32:10 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4717</feedburner:origLink></item>
        <item>
            <title>Comment by Moeller on: Make SSH connections with PHP </title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/x1ZQGlU_GGM/</link>
            <description>Thx. That FAQ is Great and very helpfull. 
greetings from Germany&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/x1ZQGlU_GGM" height="1" width="1"/&gt;</description>
            <author>Moeller</author>
            <pubDate>Sat, 31 Dec 2011 14:25:56 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_4716</feedburner:origLink></item>
        <item>
            <title>Comment by Maciej Lisiewski on: Revisiting Faster PHP Sessions</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/tSleci9S72A/</link>
            <description>Sessions in ramfs is a very, very bad idea.

1. The obvious: when the machine crashes all sessions are lost. While
sometimes that is acceptable it's a definite no-go for ecommerce sites that
share session id with cart id (common practice to reduce number of
cookies).

2. Limited (compared to other storage solutions) capacity. With small
sessions you'll end up with a 1-4 KB session files. That means that 300MB
you are using allows 75-300k concurrent sessions. Seems a lot til you
remember that webcrawlers from Google, Yahoo, Bing, etc don't use cookies
and each request equals new session. With a large website number of
requests in millions per day is not uncommon. Boom, suddenly no new session
can be created, 502.

3. As with any file storage you loose all the benefits of storing sessions
in relational database - the most basic being an ability to modify session
of a specific user (log him out for example) - this way you can actually
store permissions in session and avoid querying permissions per request.


I went for a hybrid solution:
- sessions are stored both in database and key-store
(APC/memcached/whatever I plug in depending on site size)
- database is checked only if key-store returns no match - if there is a
match in db it's copied to key-store.
- database is written to only if session value is modified or if time since
last persistent (db) store is longer than predefined interval
- most popular/aggressive crawlers are matched by user agent and no session
is created for them

Result is fast. Not as fast as tmpfs, but close enough and it supports
sharding out of the box (add modulo of request id to select memcached
and/or db shard and you're done) without the need to sync files. No fancy
clusters - just add new box if you need it and change divisor in config.
Garbage collection is dead simple - cron job that deletes entries from db
that had no persistent store for predefined interval - key-store expires on
it's own.
You can kill any memcached instance - new one will load all the sessions
from db (there will be a load spike, but each will be read just once).
It degrades gracefully if at least db works. If it doesn't you're fucked
anyway ;-)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/tSleci9S72A" height="1" width="1"/&gt;</description>
            <author>Maciej Lisiewski</author>
            <pubDate>Sat, 31 Dec 2011 07:10:35 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/faster_php_sessions/#comment_4715</feedburner:origLink></item>
    </channel>
</rss>

