How to run cron job in php
<p>I have php function that I wnat to run every 15 minutes. I found some questions like this:</p>

<blockquote>
  <p><a href="https://stackoverflow.com/questions/33099274/how-can-i-make-a-cron-to-execute-a-php-script">How can I make a cron to execute a php script?</a></p>
</blockquote>

<p>and in my case I should use this:</p>

<p><code>*/15 * * * * /usr/local/bin/php -q /path/to/my/file.p</code></p>

<p>But should I run this command in terminal or put it in my file? And once, it is executed, will it run all the time or will have time limit?</p>

<p>Thanks!</p>