In regard to running php scripts with cron -
Here is a sample script:
<?php
//debug.php
echo "<br> This is a test";
?>
I can call debug.php from a web page on my site like this:
include 'debug.php';
But what if I want to call that same script using cron?
Do I need to modify the script like this:
#!/usr/bin/php -q
<?php
//debug.php
echo "<br> This is a test";
?>
Do I need to include the shebang (#!/usr/bin/php -q) for a php script to be
called from cron?
Here is a sample script:
<?php
//debug.php
echo "<br> This is a test";
?>
I can call debug.php from a web page on my site like this:
include 'debug.php';
But what if I want to call that same script using cron?
Do I need to modify the script like this:
#!/usr/bin/php -q
<?php
//debug.php
echo "<br> This is a test";
?>
Do I need to include the shebang (#!/usr/bin/php -q) for a php script to be
called from cron?
Comment