<?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>Mon, 13 Jul 2009 03:15:19 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/kvz-comments" type="application/rss+xml" /><item>
            <title>Comment by Marcelo on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/1bL8fFjOWTk/</link>
            <description>Very useful. Thanks!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/1bL8fFjOWTk" height="1" width="1"/&gt;</description>
            <author>Marcelo</author>
            <pubDate>Sat, 11 Jul 2009 14:02:06 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_3351</feedburner:origLink></item>
        <item>
            <title>Comment by YPI prem on: PHP Recursive str_replace: replaceTree</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/g7dvxltPmZk/</link>
            <description>This is really awesome. PHP doesn't allow this as a inbuilt func, but to me
its look generic enuf to be included in pHp6&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/g7dvxltPmZk" height="1" width="1"/&gt;</description>
            <author>YPI prem</author>
            <pubDate>Fri, 10 Jul 2009 09:20:44 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/php_recursive_str_replace_replacetree/#comment_3350</feedburner:origLink></item>
        <item>
            <title>Comment by Morten Slott Hansen on: Convert anything to Tree Structures in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/aErryrcWUho/</link>
            <description>Indeed awesome stuff - Have been trying something like this the whole week
and have so far been unsuccessful - this just saved my entire week!
Now I can finally make a WEB frontend for digikam!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/aErryrcWUho" height="1" width="1"/&gt;</description>
            <author>Morten Slott Hansen</author>
            <pubDate>Fri, 10 Jul 2009 09:14:22 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/convert_anything_to_tree_structures_in_php/#comment_3349</feedburner:origLink></item>
        <item>
            <title>Comment by ephman on: Survive heavy traffic with your webserver</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/KKaiuCjiGDk/</link>
            <description>ha ha i wish i had the traffic on my blog to worry about things like this! 
:)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/KKaiuCjiGDk" height="1" width="1"/&gt;</description>
            <author>ephman</author>
            <pubDate>Fri, 10 Jul 2009 04:01:22 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/survive_heavy_traffic_with_your_webserver/#comment_3347</feedburner:origLink></item>
        <item>
            <title>Comment by dinesh on: Make ISO images on Linux</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/UbST4dZelcU/</link>
            <description>Thanks. It worked perfectly.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/UbST4dZelcU" height="1" width="1"/&gt;</description>
            <author>dinesh</author>
            <pubDate>Fri, 10 Jul 2009 03:38:52 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_iso_images_on_linux/#comment_3346</feedburner:origLink></item>
        <item>
            <title>Comment by Santosh on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/s4YWR2WxF58/</link>
            <description>php ssh1.php
okay: logged in...

&amp;quot;NO OUTPUT&amp;quot;&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/s4YWR2WxF58" height="1" width="1"/&gt;</description>
            <author>Santosh</author>
            <pubDate>Thu, 09 Jul 2009 06:42:17 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3342</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: How virtualization will improve your code</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/tllHYeETIDk/</link>
            <description>@colin: Sounds promising. Do you know of any benchmarks or articles that
dive into it a bit deeper?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/tllHYeETIDk" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Wed, 08 Jul 2009 14:35:11 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/how_virtualization_will_improve_your_code/#comment_3341</feedburner:origLink></item>
        <item>
            <title>Comment by Joe Li on: Improve MySQL Insert Performance</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/fNOtssZuvT4/</link>
            <description>Two reminders:
1. To execute LOAD DATA INFILE queries, the user must have the FILE
privilege. It may be a concern as many website hosting provider does not
allow to grant this to user.

2. Transaction: LOAD DATA INFILE outperforms at record insertion, but it
may be a problem for data integrity. I am not sure if LOCK/UNLOCK TABLES
queries are still required for such action. Feel free to share and discuss.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/fNOtssZuvT4" height="1" width="1"/&gt;</description>
            <author>Joe Li</author>
            <pubDate>Wed, 08 Jul 2009 05:20:28 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/improve_mysql_insert_performance/#comment_3340</feedburner:origLink></item>
        <item>
            <title>Comment by colin on: How virtualization will improve your code</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/boCrUjeOs4s/</link>
            <description>Changing the hard disk controller from IDE to SATA in the VirtualBox config
increases disk access performance for the VM considerably.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/boCrUjeOs4s" height="1" width="1"/&gt;</description>
            <author>colin</author>
            <pubDate>Wed, 08 Jul 2009 02:02:05 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/how_virtualization_will_improve_your_code/#comment_3339</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/79fQYhcsDCo/</link>
            <description>Typically you would configure a deamon to run at server boot, and have it
accept jobs while it's running.

If you want to control a daemon's start / stop you typically would do that
with a script inside /etc/init.d (os dependent, for some OSes,
System_Daemon can generate such a script for you)

So, yes in theory you could then use a PHP script to control run the
init.d script and control your daemon process. But I'd hardly recommend it
because of 
- bad practice
- security risks involved&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/79fQYhcsDCo" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Tue, 07 Jul 2009 14:30:49 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_3338</feedburner:origLink></item>
        <item>
            <title>Comment by dulig on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/AJaMbJdFW2U/</link>
            <description>Hey, 
Thanks for this great article. 
I think about using your daemon in my web application.
This might be a stupid question, but since the daemon can only be started
out of command line, will it be possible, to do a shell_exec to start the
daemon out of a web application?

Thanks in advance
dulig&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/AJaMbJdFW2U" height="1" width="1"/&gt;</description>
            <author>dulig</author>
            <pubDate>Tue, 07 Jul 2009 13:53:59 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_3337</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/Xo-dj-BL8W4/</link>
            <description>@ shaukat: Thanks :D&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/Xo-dj-BL8W4" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 03 Jul 2009 12:08:56 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_3331</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/UyfJNLCk0qI/</link>
            <description>@ Stephen: OK Stephen, I'm glad you got it working man. And thanks for
sharing.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/UyfJNLCk0qI" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 03 Jul 2009 12:08:37 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3330</feedburner:origLink></item>
        <item>
            <title>Comment by Kyle Huff on: Disable snapping windows in compiz-fusion</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/v06N4_WXXro/</link>
            <description>With a fresh install of Jaunty - I had to uncheck &amp;quot;Snap Inverted&amp;quot;
then also disable the wobbly windows plugin, and re-enabled it for this to
take affect.. Thanks for the tip!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/v06N4_WXXro" height="1" width="1"/&gt;</description>
            <author>Kyle Huff</author>
            <pubDate>Thu, 02 Jul 2009 01:56:33 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/disable_snapping_windows_in_compizfusion/#comment_3325</feedburner:origLink></item>
        <item>
            <title>Comment by shaukat on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/iyyJ-QN8FFs/</link>
            <description>cheers! one of the best short  and brief article that I have read so for.
thanks man you are great.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/iyyJ-QN8FFs" height="1" width="1"/&gt;</description>
            <author>shaukat</author>
            <pubDate>Wed, 01 Jul 2009 07:40:24 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_3324</feedburner:origLink></item>
        <item>
            <title>Comment by Stephen on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/xvqR-NByzhE/</link>
            <description>It seems through some trials and a lot of swearing, I managed to figure out
a method to get the file to the recipient server, but its not relying on
the ssh2_scp_send routine.

In place of the ssh_scp_send line, I replaced with the following:
[code=&amp;quot;php&amp;quot;]
    $sftp=ssh2_sftp($con);
   
$stream=fopen(&amp;quot;ssh2.sftp://{$sftp}{$DestFile}&amp;quot;,&amp;quot;w&amp;quot;);
    fwrite($stream,$GeneratedNavb_live);
    fclose($stream);
[/code]

That got the files to their destination.

How I found this was from one resource on two pages:

http://ca2.php.net/manual/en/function.ssh2-sftp.php
http://ca2.php.net/manual/en/function.fwrite.php

Since I had already established a successful link with the recipient
server, all I had to do was open an SFTP session, write the file out
(Binary safe), and everything worked as expected.  No cut offs, although I
am hammering the machines just to make sure this works.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/xvqR-NByzhE" height="1" width="1"/&gt;</description>
            <author>Stephen</author>
            <pubDate>Wed, 01 Jul 2009 02:59:41 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3323</feedburner:origLink></item>
        <item>
            <title>Comment by Stephen on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/myw6PxiB1Qw/</link>
            <description>@Kevin: I KNOW you're not the developer behind the SSH code, but maybe
you've experienced this if you use this part of PHP.

What my project entails is taking some information from a database,
formatting it very specifically, putting it into a string or file, then
shove it over to a series of servers in one particular location.  I
`sometimes` do not successfully transfer the file in its entirety when
using the following code:

[code=&amp;quot;php&amp;quot;]
	// $UploadToServer is an array of server names created by explode  
	foreach($UploadToServer as $Server){
    $DestFile=&amp;quot;/tmp/somefile.txt&amp;quot;;
    echo &amp;quot;Transferring to $Server...&amp;quot;;
		// Force a cache flush
    ob_flush();
    flush();
	
    $con=ssh2_connect($Server,22);
    ssh2_auth_password($con,&amp;quot;user&amp;quot;,&amp;quot;password&amp;quot;);
   
ssh2_scp_send($con,&amp;quot;cache/somefile.txt&amp;quot;,&amp;quot;$DestFile&amp;quot;) or
die(&amp;quot;Could not transfer to $Server - Operation aborted.&amp;quot;);

		// Force a cache flush again
    echo &amp;quot;OK.\n&amp;quot;;
    ob_flush();
    flush();
  }
[/code]

The file that is to be transferred is about 40k in size.  However, what
gets to the server is about 16k in size.  I've found this to be an
extremely random event.  I'm also seeing that this code is sent
successfully, however, the file sizes are a serious mismatch.

The other thing I'm seeing is on a failed transmit, the recipients
/var/log/secure log shows this:

[code=&amp;quot;text&amp;quot;]
Jul  1 01:57:18 hsNavYyzComm2 sshd[29549]: Accepted password for foms from
::ffff:10.12.5.71 port 59937 ssh2
Jul  1 01:57:18 hsNavYyzComm2 sshd[29551]: Disconnecting: Corrupted MAC on
input.
[/code]

Whats interesting is that I get a few KB of data TO the recipient machine
before failure.  It may be a streaming issue, I don't know.

Now, the thing that I KNOW is working is that if I log into the source
machine, I can SCP the file directly to any of those servers and it works
every-single-time-without-a-hitch.

Any ideas what I can peek at?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/myw6PxiB1Qw" height="1" width="1"/&gt;</description>
            <author>Stephen</author>
            <pubDate>Wed, 01 Jul 2009 02:04:36 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3322</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Improve MySQL Insert Performance</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/2-924sCEQ0U/</link>
            <description>@ FreudianSlip: Thanks for sharing!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/2-924sCEQ0U" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 26 Jun 2009 08:40:21 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/improve_mysql_insert_performance/#comment_3318</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/FFVsIWk0_Ps/</link>
            <description>@ shaunah: I obviously have no insight in your hosting situation. anyway,
looks like you want to try the pure php implementation.

@ Stephen: Glad you  to get it to work!

@ Fatima: I think you'd best report this with the authors. You can find
their contact data at

http://pecl.php.net/package-info.php?package=ssh2&amp;amp;version=0.11.0&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/FFVsIWk0_Ps" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 26 Jun 2009 08:39:09 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3317</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/HCDCZcg8Nhk/</link>
            <description>@ jonathan: the iterate function actually uses clearstatcache() so you can
also use that directly. As long as you use it.
But I'd rather have people use my iterate() function so that I can
implement additional fixes as I find more issues.

@ Martijn: You could also use cron combined with solo
(http://timkay.com/solo/) to prevent overlap and do what you want.  If you
need more control / intelligence on the other hand, you may need to fire
actions and keep track of time yourself.
I have once seen a full table-based cron implementation in PHP, I'm sure
you'll find it if that is what you need. Or maybe a simple
[CODE=&amp;quot;PHP&amp;quot;]
while(true) {
    if (!$ranToday &amp;amp;&amp;amp; date('Hi') &amp;gt; 1700) {
        execute();
    }
}
[/CODE]&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/HCDCZcg8Nhk" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 26 Jun 2009 08:29:22 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_3316</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Convert anything to Tree Structures in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/vm-Wf9Tcl4A/</link>
            <description>@ Andrei: You could write a recursive function that uses UL and LI HTML
elements. You could have a look at the plotTree() function above for
inspiration, google for one, or have a hack at it :)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/vm-Wf9Tcl4A" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 26 Jun 2009 08:18:33 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/convert_anything_to_tree_structures_in_php/#comment_3315</feedburner:origLink></item>
        <item>
            <title>Comment by tnt2br on: SQL Formatting</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/yMBHlhTAe4c/</link>
            <description>Vlw. Very good article! Thanks !&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/yMBHlhTAe4c" height="1" width="1"/&gt;</description>
            <author>tnt2br</author>
            <pubDate>Thu, 25 Jun 2009 05:10:00 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/sql_formatting/#comment_3311</feedburner:origLink></item>
        <item>
            <title>Comment by Kelvin on: org.eclipse.emf.ecore.util.EcoreEMap</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/T04aAxGObRI/</link>
            <description>Thanks! The eclipse outline for pdt doesn't work without this fix either.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/T04aAxGObRI" height="1" width="1"/&gt;</description>
            <author>Kelvin</author>
            <pubDate>Wed, 24 Jun 2009 23:28:35 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/orgeclipseemfecoreutilecoreemap/#comment_3310</feedburner:origLink></item>
        <item>
            <title>Comment by FreudianSlip on: Improve MySQL Insert Performance</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/xaQzO3xkTEU/</link>
            <description>Just to answer my own question below: The helpful chaps (ramirez in
particular) in #mysql on irc.freenode spotted the fact that my mysql client
versions were back-level on the centos box.  I was running 5.0.27 compared
to 5.1.32 on the fedora box.

Still a top article though ;-)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/xaQzO3xkTEU" height="1" width="1"/&gt;</description>
            <author>FreudianSlip</author>
            <pubDate>Tue, 23 Jun 2009 09:15:53 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/improve_mysql_insert_performance/#comment_3307</feedburner:origLink></item>
        <item>
            <title>Comment by FreudianSlip on: Improve MySQL Insert Performance</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/RwEGmumKGvs/</link>
            <description>Brilliant article, works fantastic on my fedora 11 install out of the box,
however I get a message from MYSQL on a centos 5 machine: &amp;quot;PHP Fatal
error: Query failed. The used command is not allowed with this MySQL
version.&amp;quot;

I've confirmed that --local-infile is ON (in the show variables output
from MySQL).  I've changed the /dev/shm to be 777 (as on my fedora system)
from 755, confirmed the infile.txt file is being created in there ok.  I've
even changed the infile location to /tmp and done a mkfifo /tmp/infile.txt;
chmod 777 /tmp/infile.txt but I get the same message.

Any clues? I'm all googled out...&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/RwEGmumKGvs" height="1" width="1"/&gt;</description>
            <author>FreudianSlip</author>
            <pubDate>Tue, 23 Jun 2009 08:43:49 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/improve_mysql_insert_performance/#comment_3306</feedburner:origLink></item>
        <item>
            <title>Comment by Fatima on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/wH8Yk06n8p0/</link>
            <description>Hi Kevin,

When i execute the command

pecl install -f ssh2,

it produces the following error,

/tmp/pear/cache/ssh2-0.11.0/ssh2.c: In function 'zif_ssh2_fingerprint':
/tmp/pear/cache/ssh2-0.11.0/ssh2.c:558: warning: initialization discards
qualifiers from pointer target type
/bin/bash /var/tmp/pear-build-root/ssh2-0.11.0/libtool --mode=compile gcc 
-I. -I/tmp/pear/cache/ssh2-0.11.0 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/ssh2-0.11.0/include
-I/var/tmp/pear-build-root/ssh2-0.11.0/main -I/tmp/pear/cache/ssh2-0.11.0
-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g
-O2   -c /tmp/pear/cache/ssh2-0.11.0/ssh2_fopen_wrappers.c -o
ssh2_fopen_wrappers.lo
 gcc -I. -I/tmp/pear/cache/ssh2-0.11.0 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/ssh2-0.11.0/include
-I/var/tmp/pear-build-root/ssh2-0.11.0/main -I/tmp/pear/cache/ssh2-0.11.0
-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g
-O2 -c /tmp/pear/cache/ssh2-0.11.0/ssh2_fopen_wrappers.c  -fPIC -DPIC -o
.libs/ssh2_fopen_wrappers.o
/tmp/pear/cache/ssh2-0.11.0/ssh2_fopen_wrappers.c: In function
'php_ssh2_channel_stream_read':
/tmp/pear/cache/ssh2-0.11.0/ssh2_fopen_wrappers.c:49: error:
'LIBSSH2_ERROR_EAGAIN' undeclared (first use in this function)
/tmp/pear/cache/ssh2-0.11.0/ssh2_fopen_wrappers.c:49: error: (Each
undeclared identifier is reported only once
/tmp/pear/cache/ssh2-0.11.0/ssh2_fopen_wrappers.c:49: error: for each
function it appears in.)
make: *** [ssh2_fopen_wrappers.lo] Error 1
ERROR: `make' failed

What should i do with this. Hope you can help me. Thanks&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/wH8Yk06n8p0" height="1" width="1"/&gt;</description>
            <author>Fatima</author>
            <pubDate>Sun, 21 Jun 2009 15:35:55 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3303</feedburner:origLink></item>
        <item>
            <title>Comment by Martijn on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/_ZTH6qwSCho/</link>
            <description>Thnx, for the article. have to say it works nice and easy. 

I think it's better solution then using cronjobs. Only wondering, i have
to do a daily job, processing books. (about 2.000.000 records) Maybe i
missing something, how to do a daily update, depending the content of a
certain folder?

I'm istill depending on cron or can you give some hints to solve the
problem?

regards Martijn&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/_ZTH6qwSCho" height="1" width="1"/&gt;</description>
            <author>Martijn</author>
            <pubDate>Sun, 21 Jun 2009 13:02:58 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_3302</feedburner:origLink></item>
        <item>
            <title>Comment by Stephen on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/oPBkZc36wuc/</link>
            <description>I figured out the problem.

It dawned at me (At 4am) that the change to the php.ini as documented here
affected just Apache.  However, what I'm doing is calling php via a shell,
so Apache doesn't come into play.  What had to be done was go into the
/var/php5/cli/php.ini and add the appropriate extension entry.  No restart
of services, or anything, and POOF, it worked.

Thanks for this!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/oPBkZc36wuc" height="1" width="1"/&gt;</description>
            <author>Stephen</author>
            <pubDate>Sun, 21 Jun 2009 08:09:20 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3301</feedburner:origLink></item>
        <item>
            <title>Comment by Stephen on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/OpHCyoz-GbU/</link>
            <description>This is exactly what I'm looking for, as Ubuntu didn't have it installed. 
Went through the step-by-step instructions and managed to get it to work.

However, ONLY for the first demo.

I changed the credentials, server, and command to execute, and with an
additional line of
[code=&amp;quot;php&amp;quot;]
echo &amp;quot;&amp;lt;pre&amp;gt;&amp;quot;.$data.&amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;
[/code]
right at the end of the file.  Perfect, I get the results I expected.

However, if I copy/paste the line to check if the ssh2_connect function
exists into my own code, first line, nothing else, it bombs saying that the
function doesn't exist.

The unique thing about this particular PHP file I'm fighting with is that
its actually &amp;quot;CALLED&amp;quot; via exec.  The actual command line is 

[code=text]php comparefile.php file1 file2[/code]

It fails with &amp;quot;function ssh2_connect doesn't exist&amp;quot;.

I drop to the command prompt, run code posted above, and it fails as
well.

So why would it be that I can execute the PHP code directly from a web
browser, it works perfectly as expected, but, when I run it at a command
prompt, or shell out, I'm failing?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/OpHCyoz-GbU" height="1" width="1"/&gt;</description>
            <author>Stephen</author>
            <pubDate>Sat, 20 Jun 2009 22:52:53 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3300</feedburner:origLink></item>
        <item>
            <title>Comment by shaunah on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/Gzcda3XR4x0/</link>
            <description>i don't install pear like that - i usually take the individual components i
need and their dependencies and put them in a directory in the include
path.

i've done go-pear, before, as well, but all trying to do it via the
command line results in are errors.  i'm on a shared host and it seems like
it would be a rather big oversight on their part if they let me install
arbitrary extensions on their server.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/Gzcda3XR4x0" height="1" width="1"/&gt;</description>
            <author>shaunah</author>
            <pubDate>Sat, 20 Jun 2009 01:51:05 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3299</feedburner:origLink></item>
        <item>
            <title>Comment by jonathan on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/zj8kn1_cjkg/</link>
            <description>RE: Statcache will corrupt your data

is clearstatcache () broken?

I've been using this successfully, but did I miss something?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/zj8kn1_cjkg" height="1" width="1"/&gt;</description>
            <author>jonathan</author>
            <pubDate>Fri, 19 Jun 2009 05:02:12 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_3297</feedburner:origLink></item>
        <item>
            <title>Comment by Andrei on: Convert anything to Tree Structures in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/qoPbE2aBb6o/</link>
            <description>Great function plotTree. I want to use it on a table witch looks like
this:
id | id_parent | page
1 | 0 | home
2 | 1 | page1
3 | 0 | page2
4 | 1 | page3
5 | 3 | page4
6 | 1 | page5
7 | 4 | page6
8 | 7 | page7
9 | 5 | page8
Using this table I want to generate a sitemap. Cand someone give me a
hint?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/qoPbE2aBb6o" height="1" width="1"/&gt;</description>
            <author>Andrei</author>
            <pubDate>Thu, 18 Jun 2009 18:38:50 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/convert_anything_to_tree_structures_in_php/#comment_3296</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Convert anything to Tree Structures in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/pq4bRW4j2WM/</link>
            <description>@ Matt: Thanks for sharing!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/pq4bRW4j2WM" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Thu, 18 Jun 2009 13:11:00 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/convert_anything_to_tree_structures_in_php/#comment_3295</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/ITX1raiDVQE/</link>
            <description>@ Adam Charnock: It should a boolean when it already exists. And the string
when it has created it for the first time. Can you confirm this?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/ITX1raiDVQE" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Thu, 18 Jun 2009 13:09:33 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_3294</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/wayv4__KFUU/</link>
            <description>@ Gerrit: very interesting, thanks for the heads-up!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/wayv4__KFUU" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Thu, 18 Jun 2009 13:08:42 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_3293</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/IEB01teFOSs/</link>
            <description>@ shaunah: Well I mentioned PEAR cause if pear works chances are you can
install pecl using pear just like:
[CODE=&amp;quot;BASH&amp;quot;]
pear install -f ssh2
[/CODE]

instead of:

[CODE=&amp;quot;BASH&amp;quot;]
pecl install -f ssh2
[/CODE]

@ purelife: Yeah that sure looks like a good option too!

@ Alan Choyna: I think our issue is a bit beyond the scope of this article
and if you're still choosing libssh instead of purelife's suggestion it
might be best to create a bug report with the authors of the software to
help you troubleshoot.

@ Han: Do other commands work with libssh? You might test something like
the following:

$str = file_get_contents('/srv/www/htdocs/point/server.tmp')

remotely execute:
&amp;quot;echo '{$str}' &amp;gt; /home/point/etmain/server.cfg&amp;quot;

Which could also get your config file across. At least you isolate any
permission related issues that way.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/IEB01teFOSs" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Thu, 18 Jun 2009 13:07:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3292</feedburner:origLink></item>
        <item>
            <title>Comment by Gerrit on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/cTdt9SLTT_w/</link>
            <description>Great post: I got inspired and changed your code a bit to improve for speed
by using int rather than float. This also fixes the rounding problems: try

[CODE="php"]
var_dump(alphaID(alphaID(238328), true) == 238328); 
[/CODE]
in your converter.

Follow my link for my version of the converter.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/cTdt9SLTT_w" height="1" width="1"/&gt;</description>
            <author>Gerrit</author>
            <pubDate>Thu, 18 Jun 2009 10:42:39 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_3291</feedburner:origLink></item>
        <item>
            <title>Comment by Matt on: Convert anything to Tree Structures in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/ZdXH6ZqTCJM/</link>
            <description>Great function, I've used it a few times. I agree that with many problems
where it seems my brain is about to break I realize that this is probably
the solution.
The only thing I needed to add was a limit parameter for a recent project
but it was easy as all that was changed was the -1 to a default of
$limit=-1 on the preg_split.

Thanks!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/ZdXH6ZqTCJM" height="1" width="1"/&gt;</description>
            <author>Matt</author>
            <pubDate>Wed, 17 Jun 2009 18:47:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/convert_anything_to_tree_structures_in_php/#comment_3290</feedburner:origLink></item>
        <item>
            <title>Comment by purelife on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/rmusbZ4vaWI/</link>
            <description>@shaunah and @Alan Choyna:

Try this:

http://phpseclib.sourceforge.net/

Since it's pure-PHP, you don't have to bother with any PECL nonsense.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/rmusbZ4vaWI" height="1" width="1"/&gt;</description>
            <author>purelife</author>
            <pubDate>Wed, 17 Jun 2009 06:06:08 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3289</feedburner:origLink></item>
        <item>
            <title>Comment by merso on: Make ISO images on Linux</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/AQdqx8oN3vI/</link>
            <description>If you want to create ISO Image on Mac,I share you below resource:
http://www.gleez.com/board/tech-corner/tips-tricks/how-create-iso-image-file-dvd-mac-os&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/AQdqx8oN3vI" height="1" width="1"/&gt;</description>
            <author>merso</author>
            <pubDate>Wed, 17 Jun 2009 02:32:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_iso_images_on_linux/#comment_3288</feedburner:origLink></item>
        <item>
            <title>Comment by Adam Charnock on: Create daemons in PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/2kWEuE0y320/</link>
            <description>Hi Kevin,

This is really great work, thank you very much. We are going to be using
it extensively in the backend of the next version of walltweet.org.

I did notice this:

&amp;quot;On success, this will return the path to the autostartup file:
/etc/init.d/logparser, and you're good to go!&amp;quot;

... which isn't actually correct. It seems to return boolean, not a
string. Just a minor point!

Thanks again :D

Adam Charnock&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/2kWEuE0y320" height="1" width="1"/&gt;</description>
            <author>Adam Charnock</author>
            <pubDate>Mon, 15 Jun 2009 21:26:05 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/#comment_3287</feedburner:origLink></item>
        <item>
            <title>Comment by Alan Choyna on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/1k-kddwuoxo/</link>
            <description>I have a Centos 5.3 64 bit OS that I'm building as a Scalr management
station manage our Amazon Ec2 cloud instances, and am caught trying get the
&amp;quot;pecl install -f ssh2&amp;quot; to work.

Scaltr requires pretty much the latest PHP (at least 5.2.9, I've installed
5.3.0).

I've updated the libssh2 as you've documented, but the &amp;quot;pecl install
-f ssh2&amp;quot; command fails with a 
&amp;quot;: Function eregi() is deprecated in PEAR/Registry.php on line 735.
Error make failed&amp;quot;.

I'm not sure what to do to debug this issue. Any advice?

Thanks in advance,

Alan&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/1k-kddwuoxo" height="1" width="1"/&gt;</description>
            <author>Alan Choyna</author>
            <pubDate>Sun, 14 Jun 2009 21:45:27 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3285</feedburner:origLink></item>
        <item>
            <title>Comment by Han on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/2vtFnbAnPCg/</link>
            <description>Kevin, i hope you remember me.
I have a new problem... ive been trying to make v2.0 of a project i made
some months ago.

And i notice that for some reason the following does not do anything:

[code=&amp;quot;php&amp;quot;]
 if(ssh2_auth_password($connection,$user,$pwd)){
                               
$stream=ssh2_scp_send($connection,'/srv/www/htdocs/point/server.tmp','/home/point/etmain/server.cfg',0644);
        }else{
                echo &amp;quot;No ballzzz...&amp;quot;;
        }
[/code]
if i put an echo before and after the $stream line, it gets echoed, but
for some reason the scp send command doesnt do bullshit ...

Any idea ?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/2vtFnbAnPCg" height="1" width="1"/&gt;</description>
            <author>Han</author>
            <pubDate>Sun, 14 Jun 2009 13:05:46 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3284</feedburner:origLink></item>
        <item>
            <title>Comment by devnic on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/BPV4S89CXZk/</link>
            <description>Cool. The best part is that it is a small code that can make the url look
more readable and pro.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/BPV4S89CXZk" height="1" width="1"/&gt;</description>
            <author>devnic</author>
            <pubDate>Fri, 12 Jun 2009 16:43:21 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_3281</feedburner:origLink></item>
        <item>
            <title>Comment by shaunah on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/Nj-F2iprxMc/</link>
            <description>pear isn't a problem - it's pecl that is.

some pear stuff may be a problem, too, if they use pecl extensions, but i
haven't come across such packages, yet.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/Nj-F2iprxMc" height="1" width="1"/&gt;</description>
            <author>shaunah</author>
            <pubDate>Fri, 12 Jun 2009 15:55:08 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3280</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/RTXdfq9TDbc/</link>
            <description>@ shaunah: That kind of depends how they blocked it. Can you run pear?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/RTXdfq9TDbc" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Thu, 11 Jun 2009 18:50:12 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3277</feedburner:origLink></item>
        <item>
            <title>Comment by Đỗ Nam Khánh on: Create short IDs with PHP - Like Youtube or TinyURL</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/tVt3oSneVFk/</link>
            <description>Thanks for nice post ^^&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/tVt3oSneVFk" height="1" width="1"/&gt;</description>
            <author>Đỗ Nam Khánh</author>
            <pubDate>Thu, 11 Jun 2009 15:27:08 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/#comment_3276</feedburner:origLink></item>
        <item>
            <title>Comment by conaxsat duo on: List of social bookmarking sites</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/nEYucPaZPmc/</link>
            <description>Hi
Thanks for sharing :-)

I've used this code in my site. its gives more traffic and easily
bookmarking the posts. To add twitter also. its one of the good bookmarking
site.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/nEYucPaZPmc" height="1" width="1"/&gt;</description>
            <author>conaxsat duo</author>
            <pubDate>Thu, 11 Jun 2009 11:59:01 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/list_of_social_bookmarking_sites/#comment_3275</feedburner:origLink></item>
        <item>
            <title>Comment by seed on: Introducing 2 new feeds</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/MG0oQ98W_e8/</link>
            <description>yes I was waiting for RSS&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/MG0oQ98W_e8" height="1" width="1"/&gt;</description>
            <author>seed</author>
            <pubDate>Thu, 11 Jun 2009 06:46:47 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/introducing_2_new_feeds/#comment_3274</feedburner:origLink></item>
        <item>
            <title>Comment by shaunah on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/0FfN3hMjkbg/</link>
            <description>my host doesn't support let me install pecl modules. can i still do ssh2?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/0FfN3hMjkbg" height="1" width="1"/&gt;</description>
            <author>shaunah</author>
            <pubDate>Wed, 10 Jun 2009 21:16:56 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3272</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Tranfer all MySQL databases to another server</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/Ou5rMLbAgpo/</link>
            <description>@ Vaibhav: Obiously you can choose who the 'From' &amp;amp; 'To' are. So yes,
these can be any host you want. Also the reverse of you initial idea.

You just have to make sure you set the right permissions so that the
initiating host can access both mysql instances.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/Ou5rMLbAgpo" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Wed, 10 Jun 2009 14:24:46 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/tranfer_all_mysql_databases_to_another_server/#comment_3271</feedburner:origLink></item>
        <item>
            <title>Comment by Vaibhav on: Tranfer all MySQL databases to another server</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/JCNh6c5QKJI/</link>
            <description>Is it possible to do the reverse ?
Backup script will be run on Backup Server and pull the MySQL data from
the Main Server ?

The reason being, our Backup Server is switched off most of the day. We
start the backup server  twice every day and run syncing script via
rc.local to sync the backup server with main server and then again switch
off the backup server.

I look forward to your comments.

Thx
Vai&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/JCNh6c5QKJI" height="1" width="1"/&gt;</description>
            <author>Vaibhav</author>
            <pubDate>Wed, 10 Jun 2009 13:19:25 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/tranfer_all_mysql_databases_to_another_server/#comment_3270</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/wephenI064k/</link>
            <description>@ Alex Weber: Seems to me that you may have created that directory as root
once, and now you only have read rights.

Also seems to me that you should own everything inside your homedir so I
think you could:

[CODE=&amp;quot;Javascript&amp;quot;]
sudo chown -R alex.alex ~alex/.fonts
[/CODE]

And be done with it ; )&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/wephenI064k" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Wed, 10 Jun 2009 13:02:04 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3269</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/idqZ3iPSLmY/</link>
            <description>@ Daisy: Hm, could it be that you don't have enough rights to create the
files? Try running the commands prefixed with sudo (or as root) for once.

@ Rachid: The PHP implementation doesn't generate dialogs that block
further processing. It's a warning, not an error.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/idqZ3iPSLmY" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Wed, 10 Jun 2009 13:00:30 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3268</feedburner:origLink></item>
        <item>
            <title>Comment by Alex Weber on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/KHwDd_ikO0g/</link>
            <description>@ Kevin, yeah it makes no sense to me to have to sudo wget but at least on
my setup I need to sudo copy the fonts to ~/.fonts (been installing more
fonts lately...) and I get permission denied any other way...

Cheers!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/KHwDd_ikO0g" height="1" width="1"/&gt;</description>
            <author>Alex Weber</author>
            <pubDate>Mon, 08 Jun 2009 21:41:00 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3265</feedburner:origLink></item>
        <item>
            <title>Comment by Rachid on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/1q1BGuav3y0/</link>
            <description>I am trying to connect to a system which requires some extra code.
When connecting with a regular SSH client, I get the following message
once.

&amp;quot;The authenticity of host '192.168.255.9 (192.168.255.9)' can't be
established.
RSA key fingerprint is 64:bd:4e:94:a5:da:50:30:a8:67:71:7e:f0:19:1a:b7.
Are you sure you want to continue connecting (yes/no)?&amp;quot;

I can bypass this by pressing Yes on the SSH client.
But how can I bypass this with PHP ?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/1q1BGuav3y0" height="1" width="1"/&gt;</description>
            <author>Rachid</author>
            <pubDate>Mon, 08 Jun 2009 13:22:17 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3264</feedburner:origLink></item>
        <item>
            <title>Comment by Daisy on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/z90mr220Mtw/</link>
            <description>The libssh2-1.1is the latest stable version and I have tried the method
mentioned in this post and it works successfully. However, when I try to
install this in another Debian Server, it gives me the following error. I
am very new to Debian, hence, any help is welcome :

I get this when I put the  ./configure :

checking host system type... (cached) x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: in `/usr/src/libssh2-1.1':
configure: error: C compiler cannot create executables&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/z90mr220Mtw" height="1" width="1"/&gt;</description>
            <author>Daisy</author>
            <pubDate>Mon, 08 Jun 2009 09:53:47 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3263</feedburner:origLink></item>
        <item>
            <title>Comment by Enzo on: Fix Flash Problems on Ubuntu</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/gAKOutLRRz4/</link>
            <description>Dude, thank you!  This has been bothering me since I've changed my hard
drive.  I was beginning to think it was faulty hardware.

Thanks again

-Enzo&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/gAKOutLRRz4" height="1" width="1"/&gt;</description>
            <author>Enzo</author>
            <pubDate>Mon, 08 Jun 2009 01:20:24 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/fix_flash_problems_on_ubuntu/#comment_3262</feedburner:origLink></item>
        <item>
            <title>Comment by Meshach on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/WIZFXeExX3g/</link>
            <description>Just kidding.

Mine would probably be Monaco.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/WIZFXeExX3g" height="1" width="1"/&gt;</description>
            <author>Meshach</author>
            <pubDate>Fri, 05 Jun 2009 01:36:37 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3261</feedburner:origLink></item>
        <item>
            <title>Comment by Meshach on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/wk7hLDun63Q/</link>
            <description>My fav coding font is Impact.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/wk7hLDun63Q" height="1" width="1"/&gt;</description>
            <author>Meshach</author>
            <pubDate>Thu, 04 Jun 2009 18:44:53 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3260</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/4qnixkagjrg/</link>
            <description>@ Alex Weber: Damn we are fast : )

Doesn't really make sense to me why you should have to sudo for a wget
though.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/4qnixkagjrg" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Thu, 04 Jun 2009 15:08:22 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3258</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/d2J4QaXxR-Y/</link>
            <description>@ Alex Weber: Thanks. Using Jaunty myself. Did you get any errors? 
Sometimes sudo asking for a password prevents further execution. Maybe you
could try again and let me know?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/d2J4QaXxR-Y" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Thu, 04 Jun 2009 15:06:14 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3257</feedburner:origLink></item>
        <item>
            <title>Comment by Alex Weber on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/XCACJlwbMqA/</link>
            <description>Figured it out... you need to sudo wget for it to work, at least I had
to... :)

My bad for the double post!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/XCACJlwbMqA" height="1" width="1"/&gt;</description>
            <author>Alex Weber</author>
            <pubDate>Thu, 04 Jun 2009 14:55:15 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3256</feedburner:origLink></item>
        <item>
            <title>Comment by Alex Weber on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/mJksaRaY7g8/</link>
            <description>Thanks for the tip and the article but I couldn't get your script to work
on Ubuntu Jaunty... 

My favorite font apart from Inconsolata is Vera Sans btw! :)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/mJksaRaY7g8" height="1" width="1"/&gt;</description>
            <author>Alex Weber</author>
            <pubDate>Thu, 04 Jun 2009 14:51:53 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3255</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: PHP: tiff2pdf</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/dxK9opK7cfE/</link>
            <description>@ sumo: Nice : ) Thanks for sharing.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/dxK9opK7cfE" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Sun, 31 May 2009 19:50:23 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/php_tiff2pdf/#comment_3250</feedburner:origLink></item>
        <item>
            <title>Comment by Sam on: Fix Flash Problems on Ubuntu</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/HpQbMncPC2M/</link>
            <description>Nice solution... works great! (Ubuntu 9.04)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/HpQbMncPC2M" height="1" width="1"/&gt;</description>
            <author>Sam</author>
            <pubDate>Sat, 30 May 2009 16:49:51 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/fix_flash_problems_on_ubuntu/#comment_3248</feedburner:origLink></item>
        <item>
            <title>Comment by sumo on: PHP: tiff2pdf</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/YoXWHGn-0RE/</link>
            <description>Got some good direction from your article. Had some problems with
ghostscript fonts so I was searching for another solution. At the end of
the day I found what I think is a more elegant solution (but limited to
tiffs). Instead of using imagick and ghostscript just install libtiff (yum,
apt etc.). After that its just &amp;quot; tiff2pdf -o output.pdf
input.tiff&amp;quot; Thats it :), one line of code...&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/YoXWHGn-0RE" height="1" width="1"/&gt;</description>
            <author>sumo</author>
            <pubDate>Fri, 29 May 2009 17:18:28 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/php_tiff2pdf/#comment_3246</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: org.eclipse.emf.ecore.util.EcoreEMap</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/dx05O_Qu0u4/</link>
            <description>If you like Eclipse, I think you will adore NetBeans : )
http://kevin.vanzonneveld.net/techblog/article/my_new_ide_netbeans/&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/dx05O_Qu0u4" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 29 May 2009 13:15:54 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/orgeclipseemfecoreutilecoreemap/#comment_3245</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/lps4BmsfoaM/</link>
            <description>@ Patrick: Thanks. Looks indeed as if Bill was wrong. The manual said:

[CODE=&amp;quot;text&amp;quot;]
day of week    0-7 (0 or 7 is Sun, or use names)
[/CODE]

It also says that lists are allowed.  A list is a set of numbers (or
ranges) separated by commas.	Examples: &amp;quot;1,2,5,9&amp;quot;,
'0-4,8-12'&amp;quot;. There's no reason why this shouldn't work for weekdays.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/lps4BmsfoaM" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 29 May 2009 13:04:10 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_3244</feedburner:origLink></item>
        <item>
            <title>Comment by Farid on: org.eclipse.emf.ecore.util.EcoreEMap</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/XrPr-obyRic/</link>
            <description>I was going nuts with Eclipse, I installed Oxygen plugin and all sorts of
errors where shown, after veryfing the version, I was using 1.5 though I
installed sun 1.6, your solution worked perfectly! Thanks man!
Cheers;&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/XrPr-obyRic" height="1" width="1"/&gt;</description>
            <author>Farid</author>
            <pubDate>Thu, 28 May 2009 17:15:03 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/orgeclipseemfecoreutilecoreemap/#comment_3241</feedburner:origLink></item>
        <item>
            <title>Comment by xhtmlcssexpert on: List of social bookmarking sites</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/GDDcKrb0naE/</link>
            <description>yes this very essential article for seo, i like it too much&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/GDDcKrb0naE" height="1" width="1"/&gt;</description>
            <author>xhtmlcssexpert</author>
            <pubDate>Thu, 28 May 2009 10:59:00 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/list_of_social_bookmarking_sites/#comment_3238</feedburner:origLink></item>
        <item>
            <title>Comment by Patrick on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/Shtp8xXZMU0/</link>
            <description>How is the day-of-week used (and/or)? If I wanted to schedule myjob to run
at noon on the 1st Monday of the month, can I use:

0 12 1-7 * 1 myjob

If not... Can it be done and how?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/Shtp8xXZMU0" height="1" width="1"/&gt;</description>
            <author>Patrick</author>
            <pubDate>Wed, 27 May 2009 17:51:29 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_3235</feedburner:origLink></item>
        <item>
            <title>Comment by Patrick on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/L2-0Fg8owPk/</link>
            <description>I believe you had it correct before Bill's note. Friday is weekday=5
(Saturday=6) and 01:00 is Friday early morning (Thursday night).&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/L2-0Fg8owPk" height="1" width="1"/&gt;</description>
            <author>Patrick</author>
            <pubDate>Wed, 27 May 2009 17:45:32 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_3234</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/aPKj2DQEFck/</link>
            <description>Thanks for sharing everyone! 

@ sweetl80: If I remember correctly Inconsolata was actually based on
Consolas, but I'm not entirely sure : )&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/aPKj2DQEFck" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Wed, 27 May 2009 10:00:25 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3229</feedburner:origLink></item>
        <item>
            <title>Comment by Chris on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/SLi7-lwmWM8/</link>
            <description>I usually use Courier New, but I will be switching to Linux, Ubuntu 9.04
distribution next month (I've tried several times but it had little
annoyances - from what I see these have been fixed now), so I'll give this
a try first, it does look nice.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/SLi7-lwmWM8" height="1" width="1"/&gt;</description>
            <author>Chris</author>
            <pubDate>Wed, 27 May 2009 09:15:33 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3228</feedburner:origLink></item>
        <item>
            <title>Comment by sweetl80 on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/fZvVJcUgT0M/</link>
            <description>my favourite is consolas... cleartype, and done really nicely. there is no
possiblity of getting letters confused.

will try this tho, it looks really nice.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/fZvVJcUgT0M" height="1" width="1"/&gt;</description>
            <author>sweetl80</author>
            <pubDate>Wed, 27 May 2009 09:12:55 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3227</feedburner:origLink></item>
        <item>
            <title>Comment by nabab on: Class 'Imagick' not found</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/Kkd3ltyGMpw/</link>
            <description>Brilliant, thanks!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/Kkd3ltyGMpw" height="1" width="1"/&gt;</description>
            <author>nabab</author>
            <pubDate>Tue, 26 May 2009 19:26:03 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/class_imagick_not_found/#comment_3226</feedburner:origLink></item>
        <item>
            <title>Comment by Brian C. Ladd on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/EPxvu6JL4ek/</link>
            <description>I love Inconsolata. I find that I can use it at smaller optical point sizes
so I can see more lines at a time (and proportionally more text across, as
well). 

My only disappointment is that there is no bold variant so printing
highlighted code does not work (I am finishing up a programming manuscript
and I need to be able to highlight Java code on the static page). Heck, I'd
be willing to pay money for the bold versions.

-bcl&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/EPxvu6JL4ek" height="1" width="1"/&gt;</description>
            <author>Brian C. Ladd</author>
            <pubDate>Tue, 26 May 2009 15:05:27 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3225</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/GlYUZtgdSEE/</link>
            <description>@ Filip Jukić &amp;amp; Pieter: Thanks. I've converted the .otf to .ttf with
FontForge and got it to work with NetBeans. I've made it available here
&amp;amp; updated the article.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/GlYUZtgdSEE" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Tue, 26 May 2009 13:00:49 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3224</feedburner:origLink></item>
        <item>
            <title>Comment by Pieter on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/D-OWqsCYRYc/</link>
            <description>Sometimes to get a TTF font to appear Netbeans (or Eclipse, or IntelliJ, or
any other Java based ide / program), it must be installed for the JRE used
to run the IDE.  Once you know which JRE it is (bundled or separate JDK),
copy the TTF files into the /jre/lib/fonts directory and restart the IDE). 


Haven't tried it with .otf though.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/D-OWqsCYRYc" height="1" width="1"/&gt;</description>
            <author>Pieter</author>
            <pubDate>Tue, 26 May 2009 12:56:01 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3223</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/1RhsmhLroMQ/</link>
            <description>m.milicevic &amp;amp; Priit: Thanks for sharing, I will definitely look into
it!

@ Gekkio: Didn't even check apt for the font, this is awesome! I've
updated the article accordingly, thx!

@ Filip Jukić: OK that explains a lot : ) Let me see how hard that is
&amp;amp; maybe share the result here.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/1RhsmhLroMQ" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Tue, 26 May 2009 12:30:05 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3222</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/j2B6IT7OicM/</link>
            <description>@ Bill: Wow nice catch, I'll update the article thx!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/j2B6IT7OicM" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Tue, 26 May 2009 12:26:12 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_3221</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/yjuCDc3rNek/</link>
            <description>@ estus: Sorry estus, I don't know what else to do, I find it kind of hard
debugging this remotely. Could it be the PHP version that ships with
redhat? I'm on the PEAR mailing list &amp;amp; I heard a LOT of complaints
&amp;amp; bugs with that version..&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/yjuCDc3rNek" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Tue, 26 May 2009 12:24:32 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3220</feedburner:origLink></item>
        <item>
            <title>Comment by Filip Jukić on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/sWUY-wtLu0I/</link>
            <description>It seems that NetBeans doesn't support OTF fonts. You might try converting
it to TTF using FontForge, I decided it wasn't worth the hassle.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/sWUY-wtLu0I" height="1" width="1"/&gt;</description>
            <author>Filip Jukić</author>
            <pubDate>Tue, 26 May 2009 12:23:00 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3219</feedburner:origLink></item>
        <item>
            <title>Comment by Gekkio on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/JWNg2Azk_ao/</link>
            <description>If you're using Ubuntu 9.04, there's also a packaged version available in
the repos which should setup things perfectly:

sudo apt-get install ttf-inconsolata

(Requires universe repos to be enabled)&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/JWNg2Azk_ao" height="1" width="1"/&gt;</description>
            <author>Gekkio</author>
            <pubDate>Tue, 26 May 2009 11:40:21 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3218</feedburner:origLink></item>
        <item>
            <title>Comment by Jake Boxer on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/WtY7T6CcAwU/</link>
            <description>Using a nice-looking programming font makes more of a difference than I
ever could've imagined. Programming in Bitstream Vera Sans Mono (my
favorite), Inconsolata, Consolas, and even Monaco is just so much more
enjoyable for me than using Courier.

I really can't explain it; it just feels better to look at my code in a
nice font.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/WtY7T6CcAwU" height="1" width="1"/&gt;</description>
            <author>Jake Boxer</author>
            <pubDate>Tue, 26 May 2009 06:11:13 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3217</feedburner:origLink></item>
        <item>
            <title>Comment by Priit on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/ANXlLHf6EYU/</link>
            <description>I've found Terminus most pleasing to the eye.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/ANXlLHf6EYU" height="1" width="1"/&gt;</description>
            <author>Priit</author>
            <pubDate>Tue, 26 May 2009 06:08:29 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3216</feedburner:origLink></item>
        <item>
            <title>Comment by m.milicevic on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/T8lfgw4M4dg/</link>
            <description>BTW, recently I did change DPI settings on Ubuntu (144 DPI from default
96),and  font looks much nicer right now. If you need DPI calculation,
check:
@see: http://www.raydreams.com/docs/dpi.html&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/T8lfgw4M4dg" height="1" width="1"/&gt;</description>
            <author>m.milicevic</author>
            <pubDate>Mon, 25 May 2009 19:40:55 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3215</feedburner:origLink></item>
        <item>
            <title>Comment by m.milicevic on: Install the Best Coding Font</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/B-H3O5yv-gY/</link>
            <description>Hi Kevin, 
it's all personal of course, but I like Envy R much better:
http://damieng.com/blog/2008/05/26/envy-code-r-preview-7-coding-font-released

It is also free. 
Few years ago I bought Pragmata font (which is right now way to expensive)
and Envy R is a lookalike of Pragmata...I found Inconsolata to
&amp;quot;square-ish&amp;quot;&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/B-H3O5yv-gY" height="1" width="1"/&gt;</description>
            <author>m.milicevic</author>
            <pubDate>Mon, 25 May 2009 19:35:59 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/install_the_best_coding_font/#comment_3214</feedburner:origLink></item>
        <item>
            <title>Comment by M A Hossain Tonu on: Survive heavy traffic with your webserver</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/WyMbF5Ah-yA/</link>
            <description>I must say that this will be a useful article for large projects. 

This could be good part of server load balancing.

Tonu
Software Engr.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/WyMbF5Ah-yA" height="1" width="1"/&gt;</description>
            <author>M A Hossain Tonu</author>
            <pubDate>Sun, 24 May 2009 08:21:26 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/survive_heavy_traffic_with_your_webserver/#comment_3212</feedburner:origLink></item>
        <item>
            <title>Comment by Bill on: Schedule tasks on Linux using crontab</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/_m5wLL93uHg/</link>
            <description>Hey. I believe you made a mistake in your friday crontab. You say &amp;quot;and
weekday: 5 (=Friday)&amp;quot; when 5 is really equal to Saturday. So really
technically its Saturday morning at 1am :D&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/_m5wLL93uHg" height="1" width="1"/&gt;</description>
            <author>Bill</author>
            <pubDate>Fri, 22 May 2009 18:40:24 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/#comment_3209</feedburner:origLink></item>
        <item>
            <title>Comment by estus on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/ppQDIzhUT4c/</link>
            <description>When I use shell method site/script is loading, loading... and loading and
nothing happens. I don't have any ideas whats wrong...  ;/&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/ppQDIzhUT4c" height="1" width="1"/&gt;</description>
            <author>estus</author>
            <pubDate>Fri, 22 May 2009 13:29:19 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3206</feedburner:origLink></item>
        <item>
            <title>Comment by estus on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/DJ0hKaI8Z6E/</link>
            <description>I know it's strange. I'm using PHP Version 5.1.6, with default php.ini. I
was nothing changing. Maybe check my phpinfo:
http://195.85.230.135/~gameone/phpinfo.php

[CODE=&amp;quot;php&amp;quot;]
stream_set_blocking($stream, 0);
[/CODE]

no change

[CODE=&amp;quot;php&amp;quot;]
var_dump($buf);
[/CODE]

no change and nothing return, really :/ this while loop is not perform.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/DJ0hKaI8Z6E" height="1" width="1"/&gt;</description>
            <author>estus</author>
            <pubDate>Fri, 22 May 2009 12:08:03 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3205</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/JMzNNTGr8d4/</link>
            <description>@ estus: Ok that's strange. What kind of device are you connecting to?
Sometimes the shell method works better.

What version of PHP are you using?
Maybe setting blocking to 0 helps:
[CODE=&amp;quot;php&amp;quot;]
stream_set_blocking($stream, 0);
[/CODE]

Try to echo debug information inside the while loop like:
[CODE=&amp;quot;php&amp;quot;]
var_dump($buf);
[/CODE]

Cause it must return something, as echo &amp;quot;1&amp;quot; is never reached,
hence $buf contains something that evaluates to true I suppose.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/JMzNNTGr8d4" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 22 May 2009 11:30:49 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3204</feedburner:origLink></item>
        <item>
            <title>Comment by estus on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/UVvncvw19Sc/</link>
            <description>I'm using source code from your article.

[CODE=&amp;quot;php&amp;quot;]
error_reporting(E_ALL); 
// ini_set('display_errors', 1); 

if (!function_exists(&amp;quot;ssh2_connect&amp;quot;)) die(&amp;quot;Error #0: Nie
wykryto ssh2 na serwerze.&amp;quot;);
if(!($con = ssh2_connect(&amp;quot;xxx&amp;quot;, 27))){
    echo &amp;quot;Error #1: Nie moge sie polaczyc z serwerem.\n&amp;quot;;
} else {
    if(!ssh2_auth_password($con, &amp;quot;xxx&amp;quot;, &amp;quot;xxx&amp;quot;)) {
        echo &amp;quot;Error #2: Bledny login lub haslo.\n&amp;quot;;
    } else {

        echo &amp;quot;Wszystko dziala.\n&amp;quot;;
       
        if(!($stream=ssh2_exec($con, &amp;quot;whoami&amp;quot; ))){
            echo &amp;quot;Error #3: Komenda nie moze zostac
wykonana.\n&amp;quot;;
        } else {
            // zwraca wynik
            stream_set_blocking($stream, true);
            $data = &amp;quot;&amp;quot;;
			echo&amp;quot;0&amp;quot;; // helps
            while($buf=fread($stream,4096)){
                $data .= $buf;
				echo $data;
				echo&amp;quot;1&amp;quot;; // helps
            }
            fclose($stream);
        }
    }
}
[/CODE]

Commands works good, I know cause I can create directory. Error reporting
doesn't shows any errors. :d It shows only number &amp;quot;0&amp;quot; but no
&amp;quot;1&amp;quot;. I was try with fgets or stream_gets_content but it doesn't
works too.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/UVvncvw19Sc" height="1" width="1"/&gt;</description>
            <author>estus</author>
            <pubDate>Fri, 22 May 2009 10:57:04 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3203</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Fix Flash Problems on Ubuntu</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/40IoX1ReUmM/</link>
            <description>@ gavin: Personally I already had that package installed but I'll update
the article as this may happen to others as well. Thanks for sharing!&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/40IoX1ReUmM" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 22 May 2009 08:58:02 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/fix_flash_problems_on_ubuntu/#comment_3202</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/kO0LA-8OPIU/</link>
            <description>@ estus: Yes maybe you're doing something wrong. But for me there's no way
to tell if you don't show me how you're doing it.

So please provide the source code and set error_reporting to E_ALL and
show all output and what goes wrong.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/kO0LA-8OPIU" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 22 May 2009 08:54:40 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3201</feedburner:origLink></item>
        <item>
            <title>Comment by Kevin on: Enhance PHP session management</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/39qYGeT_nrU/</link>
            <description>@ Artur Ejsmont: Since memcache doesn't support locking, e.g. ajax calls
may indeed cause an unexpected sequence of saves.

You can make it locking:
http://www.slideshare.net/folke/netlog-what-we-learned-about-scalability-high-availability-430211
(slide 59)

But this would require writing your own sessions hander (instead of using
the .ini default memcache handler) and sacrificing some performance.&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/39qYGeT_nrU" height="1" width="1"/&gt;</description>
            <author>Kevin</author>
            <pubDate>Fri, 22 May 2009 08:43:48 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/enhance_php_session_management/#comment_3200</feedburner:origLink></item>
        <item>
            <title>Comment by gavin on: Fix Flash Problems on Ubuntu</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/cobyudb4CZc/</link>
            <description>Worked, aside from one speedbump:
[CODE=&amp;quot;text&amp;quot;]
dpkg: dependency problems prevent configuration of adobe-flashplugin:
 adobe-flashplugin depends on libcurl3; however:
  Package libcurl3 is not installed.
dpkg: error processing adobe-flashplugin (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 adobe-flashplugin
[/CODE]

I did `sudo apt-get install libcurl3`, then `sudo dpkg -i
./install_flash_player_10_linux.deb`&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/cobyudb4CZc" height="1" width="1"/&gt;</description>
            <author>gavin</author>
            <pubDate>Thu, 21 May 2009 05:42:24 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/fix_flash_problems_on_ubuntu/#comment_3198</feedburner:origLink></item>
        <item>
            <title>Comment by estus on: Make SSH connections with PHP</title>
            <link>http://feedproxy.google.com/~r/kvz-comments/~3/eTtxhFLJ8_4/</link>
            <description>Hi,
thanks for this tutoturial, but I have some problem. Commands work fine
but it doesn't return data. 

Am I doing something wrong?&lt;img src="http://feeds.feedburner.com/~r/kvz-comments/~4/eTtxhFLJ8_4" height="1" width="1"/&gt;</description>
            <author>estus</author>
            <pubDate>Wed, 20 May 2009 17:27:25 +0100</pubDate>
        <feedburner:origLink>http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3197</feedburner:origLink></item>
    </channel>
</rss>
