php - Why does PHP_SAPI not equal 'cli' when called from a cron job? -


here line cron job...

*/5 * * * * php /home/user/public_html/index.php --uri=minion --task=emailassets 

when script runs cron job, php constant php_sapi equals 'cgi-fcgi'. why php_sapi not equal 'cli'?


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -