开发者

How to solve this cron job error 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜