标签云

微信群

扫码加入我们

WeChat QR Code

I'm inserting a record into my DB each time the cron job runs my script and that works. When the PHP script reaches an include file, the functionality in the file doesn't execute. When I run the script in the browser it all works fine. Is it a cron permission issue to access the include file? I don't see an error in my Ubuntu cron log.


Errors in scripts aren't written to the cron log. cron normally sends the output as email.

2019年06月26日04分09秒

To make your code more portable, consider using __DIR__ instead of hard-coding the path.

2019年06月25日04分09秒