I\'m trying to run a php-script on a scheduled basis. So I\'d thought crontab was a good idea. The server I\'m using is on Linux which I\'m not that familiar with. So the pr
You can also use env, it will find and launch php for you:
/usr/bin/env php /var/www/some/path/script.php
Or you can place a shebang in your script.php (first line):
#!/usr/bin/env php
then make it executable, and make crontab call it directly, like in your first example:
5 * * * * /var/www/some/path/script.php