开发者

How to solve this cron job error directory not found?

开发者 https://www.devze.com 2023-01-21 19:42 出处:网络
I have make开发者_如何转开发 one cron job as below <?php echo \"HI\"; ?> When i ran it using cron job it give me error \"?php directory not found\"

I have make开发者_如何转开发 one cron job as below

<?php 
echo "HI";
?>

When i ran it using cron job it give me error "?php directory not found"

Please help me regarding this.

Thanks in advance.

Kanji


How do you run it as a cron job? Either you need to run it like

php my-program.php

Or you need to run it directly (without php) and put the following at the top:

#!php

In the above examples you need to replace php by the full path to your php instance, which you can find my typing the following on the shell:

which php
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号