title: Enable Disable Cron in PHP code
body: <p>I want a script to enable or disable cron in php code.</p>
  
  <p>Lets say in some situation, I want to enable cron.</p>
  
  <pre><code>*/1 * * * * /usr/bin/php /home/user/cron.php
  </code></pre>
  
  <p>And in other situation, I want to disable cron.</p>
  
  <pre><code>#*/1 * * * * /usr/bin/php /home/user/cron.php
  </code></pre>
  
  <p>So how can I do this in PHP code?</p>