0

我是 cron 新手,我需要您的所有帮助,当我使用 cron 作业创建文件夹并在该文件夹 cron 页面中下载图像时,出现以下错误:

PHP Warning:  imagejpeg(): Unable to open '././../uploads/lmf-classifieds-pk/folder2/2013-04-05/36258/1365138829_498747097_3-Khyber-1990-Urgent-sale-Islamabad.jpg' for writing: No such file or directory in /var/www/vhosts/ip-50-62-136-81.ip.secureserver.net/lmf_this/cron_lmf/function.php on line 143
PHP Notice:  Undefined offset: 1 in /var/www/vhosts/ip-50-62-136-81.ip.secureserver.net/lmf_this/cron_lmf/olx_extract.php on line 562
PHP Warning:  mkdir(): Permission denied in /var/www/vhosts/ip-50-62-136-81.ip.secureserver.net/lmf_this/cron_lmf/function.php on line 61
PHP Warning:  mkdir(): Permission denied in /var/www/vhosts/ip-50-62-136-81.ip.secureserver.net/lmf_this/cron_lmf/function.php on line 65
PHP Warning:  mkdir(): Permission denied in /var/www/vhosts/ip-50-62-136-81.ip.secureserver.net/lmf_this/cron_lmf/function.php on line 69
PHP Warning:  mkdir(): No such file or directory in /var/www/vhosts/ip-50-62-136-81.ip.secureserver.net/lmf_this/cron_lmf/function.php on line 90

从这些错误..我可以理解cron作业(页面)无法创建文件夹以及下载图像..由于许可......

我应该在这个罐子里做什么?

请帮我。

4

1 回答 1

0

看起来您的脚本没有在该文件夹上执行 mkdir 的必要权限,请检查您是否具有写入权限。

于 2013-04-11T10:51:48.827 回答