标签: php cron
我设置了一个cron作业,并尝试与数据库连接,但是它不起作用。如果我手动运行文件,它将起作用。
我使用了类似的命令
/usr/local/bin/php -q /home/Username/public_html/path/to/cronfile/filename.php