I'm having a strange problem. When I call script with http request (from browser) it works as it should. But when I'm calling it with cron include starts complaining on paths. Why can paths be ok while running the script in a common way an incorrect in cron? I've tried to use absolute paths, but it did not help.
1条回答 默认 最新
dongyo1818 2015-05-03 13:22关注In my case I solved this with a code like this:
include_once __DIR__ . '/DB/mysql.php';本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报