title: Mysql and PHP connection alive
body: <p>Is it possibile to have something like "keepalive" for php-mysql connection to avoid many and many connections to db?</p>
  
  <p>I need to log some events to database, these events can be thrown very often from command line script, so I think could be better to keep a connection alive for some time instead of open a new connection for every event.</p>
  
  <p>Please mind that I'm asking for a pure php script, <strong><em>not a web server script</em></strong>, called by a shell command:</p>
  
  <pre><code>&gt; php /var/scripts/log.php
  </code></pre>
  
  <p>Is is possibile with standard php?</p>