title: Check if websocket server started using php
body: <p>I have created simple chat using websockets in PHP. I run it in hosting by using nohub like this </p>
  
  <pre><code>nohup /usr/local/bin/php5 /.../../file.php &lt;/dev/null 2&gt;
  </code></pre>
  
  <p>I would like to put a simple script to cronjob for checking your <code>file.php</code> is up or not if its not run it again. But how I will check using server is up or down I don't know. Can anyone help me?</p>